initial implementation of demo organization provider
This commit is contained in:
parent
9d2d0a7988
commit
429ca86ce9
5 changed files with 180 additions and 0 deletions
28
lib/AppInfo/Application.php
Normal file
28
lib/AppInfo/Application.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace OCA\DemoOrganizationProvider\AppInfo;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
use OCP\AppFramework\Bootstrap\IBootstrap;
|
||||
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
||||
use OCP\AppFramework\Bootstrap\IBootContext;
|
||||
|
||||
use OCA\OrganizationFolders\Events\RegisterOrganizationProviderEvent;
|
||||
|
||||
use OCA\DemoOrganizationProvider\Listener\RegisterOrganizationProviderListener;
|
||||
|
||||
class Application extends App implements IBootstrap {
|
||||
public const APP_ID = 'demo_organization_provider';
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct(self::APP_ID);
|
||||
}
|
||||
|
||||
public function register(IRegistrationContext $context): void {
|
||||
$context->registerEventListener(RegisterOrganizationProviderEvent::class, RegisterOrganizationProviderListener::class);
|
||||
}
|
||||
|
||||
public function boot(IBootContext $context): void {
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue