@@ -41,88 +41,88 @@ |
||
| 41 | 41 | use OCP\WorkflowEngine\IOperationCompat; |
| 42 | 42 | |
| 43 | 43 | class Application extends App implements IBootstrap { |
| 44 | - public const APP_ID = 'workflowengine'; |
|
| 44 | + public const APP_ID = 'workflowengine'; |
|
| 45 | 45 | |
| 46 | - public function __construct() { |
|
| 47 | - parent::__construct(self::APP_ID); |
|
| 48 | - } |
|
| 46 | + public function __construct() { |
|
| 47 | + parent::__construct(self::APP_ID); |
|
| 48 | + } |
|
| 49 | 49 | |
| 50 | - public function register(IRegistrationContext $context): void { |
|
| 51 | - $context->registerServiceAlias('RequestTimeController', RequestTime::class); |
|
| 52 | - $context->registerEventListener( |
|
| 53 | - 'OCP\WorkflowEngine::loadAdditionalSettingScripts', |
|
| 54 | - LoadAdditionalSettingsScriptsListener::class, |
|
| 55 | - -100 |
|
| 56 | - ); |
|
| 57 | - } |
|
| 50 | + public function register(IRegistrationContext $context): void { |
|
| 51 | + $context->registerServiceAlias('RequestTimeController', RequestTime::class); |
|
| 52 | + $context->registerEventListener( |
|
| 53 | + 'OCP\WorkflowEngine::loadAdditionalSettingScripts', |
|
| 54 | + LoadAdditionalSettingsScriptsListener::class, |
|
| 55 | + -100 |
|
| 56 | + ); |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - public function boot(IBootContext $context): void { |
|
| 60 | - $this->registerRuleListeners( |
|
| 61 | - $context->getAppContainer()->query(IEventDispatcher::class), |
|
| 62 | - $context->getServerContainer(), |
|
| 63 | - $context->getAppContainer()->query(ILogger::class) |
|
| 64 | - ); |
|
| 65 | - } |
|
| 59 | + public function boot(IBootContext $context): void { |
|
| 60 | + $this->registerRuleListeners( |
|
| 61 | + $context->getAppContainer()->query(IEventDispatcher::class), |
|
| 62 | + $context->getServerContainer(), |
|
| 63 | + $context->getAppContainer()->query(ILogger::class) |
|
| 64 | + ); |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - private function registerRuleListeners(IEventDispatcher $dispatcher, |
|
| 68 | - IServerContainer $container, |
|
| 69 | - ILogger $logger): void { |
|
| 70 | - $manager = $container->query(Manager::class); |
|
| 71 | - $configuredEvents = $manager->getAllConfiguredEvents(); |
|
| 67 | + private function registerRuleListeners(IEventDispatcher $dispatcher, |
|
| 68 | + IServerContainer $container, |
|
| 69 | + ILogger $logger): void { |
|
| 70 | + $manager = $container->query(Manager::class); |
|
| 71 | + $configuredEvents = $manager->getAllConfiguredEvents(); |
|
| 72 | 72 | |
| 73 | - foreach ($configuredEvents as $operationClass => $events) { |
|
| 74 | - foreach ($events as $entityClass => $eventNames) { |
|
| 75 | - array_map(function (string $eventName) use ($manager, $container, $dispatcher, $logger, $operationClass, $entityClass) { |
|
| 76 | - $dispatcher->addListener( |
|
| 77 | - $eventName, |
|
| 78 | - function ($event) use ($manager, $container, $eventName, $logger, $operationClass, $entityClass) { |
|
| 79 | - $ruleMatcher = $manager->getRuleMatcher(); |
|
| 80 | - try { |
|
| 81 | - /** @var IEntity $entity */ |
|
| 82 | - $entity = $container->query($entityClass); |
|
| 83 | - /** @var IOperation $operation */ |
|
| 84 | - $operation = $container->query($operationClass); |
|
| 73 | + foreach ($configuredEvents as $operationClass => $events) { |
|
| 74 | + foreach ($events as $entityClass => $eventNames) { |
|
| 75 | + array_map(function (string $eventName) use ($manager, $container, $dispatcher, $logger, $operationClass, $entityClass) { |
|
| 76 | + $dispatcher->addListener( |
|
| 77 | + $eventName, |
|
| 78 | + function ($event) use ($manager, $container, $eventName, $logger, $operationClass, $entityClass) { |
|
| 79 | + $ruleMatcher = $manager->getRuleMatcher(); |
|
| 80 | + try { |
|
| 81 | + /** @var IEntity $entity */ |
|
| 82 | + $entity = $container->query($entityClass); |
|
| 83 | + /** @var IOperation $operation */ |
|
| 84 | + $operation = $container->query($operationClass); |
|
| 85 | 85 | |
| 86 | - $ruleMatcher->setEntity($entity); |
|
| 87 | - $ruleMatcher->setOperation($operation); |
|
| 86 | + $ruleMatcher->setEntity($entity); |
|
| 87 | + $ruleMatcher->setOperation($operation); |
|
| 88 | 88 | |
| 89 | - $ctx = new LogContext(); |
|
| 90 | - $ctx |
|
| 91 | - ->setOperation($operation) |
|
| 92 | - ->setEntity($entity) |
|
| 93 | - ->setEventName($eventName); |
|
| 89 | + $ctx = new LogContext(); |
|
| 90 | + $ctx |
|
| 91 | + ->setOperation($operation) |
|
| 92 | + ->setEntity($entity) |
|
| 93 | + ->setEventName($eventName); |
|
| 94 | 94 | |
| 95 | - /** @var Logger $flowLogger */ |
|
| 96 | - $flowLogger = $container->query(Logger::class); |
|
| 97 | - $flowLogger->logEventInit($ctx); |
|
| 95 | + /** @var Logger $flowLogger */ |
|
| 96 | + $flowLogger = $container->query(Logger::class); |
|
| 97 | + $flowLogger->logEventInit($ctx); |
|
| 98 | 98 | |
| 99 | - if ($event instanceof Event) { |
|
| 100 | - $entity->prepareRuleMatcher($ruleMatcher, $eventName, $event); |
|
| 101 | - $operation->onEvent($eventName, $event, $ruleMatcher); |
|
| 102 | - } elseif ($entity instanceof IEntityCompat && $operation instanceof IOperationCompat) { |
|
| 103 | - // TODO: Remove this block (and the compat classes) in the first major release in 2023 |
|
| 104 | - $entity->prepareRuleMatcherCompat($ruleMatcher, $eventName, $event); |
|
| 105 | - $operation->onEventCompat($eventName, $event, $ruleMatcher); |
|
| 106 | - } else { |
|
| 107 | - $logger->debug( |
|
| 108 | - 'Cannot handle event {name} of {event} against entity {entity} and operation {operation}', |
|
| 109 | - [ |
|
| 110 | - 'app' => self::APP_ID, |
|
| 111 | - 'name' => $eventName, |
|
| 112 | - 'event' => get_class($event), |
|
| 113 | - 'entity' => $entityClass, |
|
| 114 | - 'operation' => $operationClass, |
|
| 115 | - ] |
|
| 116 | - ); |
|
| 117 | - } |
|
| 118 | - $flowLogger->logEventDone($ctx); |
|
| 119 | - } catch (QueryException $e) { |
|
| 120 | - // Ignore query exceptions since they might occur when an entity/operation were setup before by an app that is disabled now |
|
| 121 | - } |
|
| 122 | - } |
|
| 123 | - ); |
|
| 124 | - }, $eventNames ?? []); |
|
| 125 | - } |
|
| 126 | - } |
|
| 127 | - } |
|
| 99 | + if ($event instanceof Event) { |
|
| 100 | + $entity->prepareRuleMatcher($ruleMatcher, $eventName, $event); |
|
| 101 | + $operation->onEvent($eventName, $event, $ruleMatcher); |
|
| 102 | + } elseif ($entity instanceof IEntityCompat && $operation instanceof IOperationCompat) { |
|
| 103 | + // TODO: Remove this block (and the compat classes) in the first major release in 2023 |
|
| 104 | + $entity->prepareRuleMatcherCompat($ruleMatcher, $eventName, $event); |
|
| 105 | + $operation->onEventCompat($eventName, $event, $ruleMatcher); |
|
| 106 | + } else { |
|
| 107 | + $logger->debug( |
|
| 108 | + 'Cannot handle event {name} of {event} against entity {entity} and operation {operation}', |
|
| 109 | + [ |
|
| 110 | + 'app' => self::APP_ID, |
|
| 111 | + 'name' => $eventName, |
|
| 112 | + 'event' => get_class($event), |
|
| 113 | + 'entity' => $entityClass, |
|
| 114 | + 'operation' => $operationClass, |
|
| 115 | + ] |
|
| 116 | + ); |
|
| 117 | + } |
|
| 118 | + $flowLogger->logEventDone($ctx); |
|
| 119 | + } catch (QueryException $e) { |
|
| 120 | + // Ignore query exceptions since they might occur when an entity/operation were setup before by an app that is disabled now |
|
| 121 | + } |
|
| 122 | + } |
|
| 123 | + ); |
|
| 124 | + }, $eventNames ?? []); |
|
| 125 | + } |
|
| 126 | + } |
|
| 127 | + } |
|
| 128 | 128 | } |
@@ -72,10 +72,10 @@ |
||
| 72 | 72 | |
| 73 | 73 | foreach ($configuredEvents as $operationClass => $events) { |
| 74 | 74 | foreach ($events as $entityClass => $eventNames) { |
| 75 | - array_map(function (string $eventName) use ($manager, $container, $dispatcher, $logger, $operationClass, $entityClass) { |
|
| 75 | + array_map(function(string $eventName) use ($manager, $container, $dispatcher, $logger, $operationClass, $entityClass) { |
|
| 76 | 76 | $dispatcher->addListener( |
| 77 | 77 | $eventName, |
| 78 | - function ($event) use ($manager, $container, $eventName, $logger, $operationClass, $entityClass) { |
|
| 78 | + function($event) use ($manager, $container, $eventName, $logger, $operationClass, $entityClass) { |
|
| 79 | 79 | $ruleMatcher = $manager->getRuleMatcher(); |
| 80 | 80 | try { |
| 81 | 81 | /** @var IEntity $entity */ |
@@ -34,20 +34,20 @@ |
||
| 34 | 34 | use function script; |
| 35 | 35 | |
| 36 | 36 | class LoadAdditionalSettingsScriptsListener implements IEventListener { |
| 37 | - public function handle(Event $event): void { |
|
| 38 | - if (!function_exists('style')) { |
|
| 39 | - // This is hacky, but we need to load the template class |
|
| 40 | - class_exists(Template::class, true); |
|
| 41 | - } |
|
| 37 | + public function handle(Event $event): void { |
|
| 38 | + if (!function_exists('style')) { |
|
| 39 | + // This is hacky, but we need to load the template class |
|
| 40 | + class_exists(Template::class, true); |
|
| 41 | + } |
|
| 42 | 42 | |
| 43 | - script('core', [ |
|
| 44 | - 'files/fileinfo', |
|
| 45 | - 'files/client', |
|
| 46 | - 'dist/systemtags', |
|
| 47 | - ]); |
|
| 43 | + script('core', [ |
|
| 44 | + 'files/fileinfo', |
|
| 45 | + 'files/client', |
|
| 46 | + 'dist/systemtags', |
|
| 47 | + ]); |
|
| 48 | 48 | |
| 49 | - script(Application::APP_ID, [ |
|
| 50 | - 'workflowengine', |
|
| 51 | - ]); |
|
| 52 | - } |
|
| 49 | + script(Application::APP_ID, [ |
|
| 50 | + 'workflowengine', |
|
| 51 | + ]); |
|
| 52 | + } |
|
| 53 | 53 | } |
@@ -6,35 +6,35 @@ |
||
| 6 | 6 | $baseDir = $vendorDir; |
| 7 | 7 | |
| 8 | 8 | return array( |
| 9 | - 'OCA\\WorkflowEngine\\AppInfo\\Application' => $baseDir . '/../lib/AppInfo/Application.php', |
|
| 10 | - 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => $baseDir . '/../lib/BackgroundJobs/Rotate.php', |
|
| 11 | - 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => $baseDir . '/../lib/Check/AbstractStringCheck.php', |
|
| 12 | - 'OCA\\WorkflowEngine\\Check\\FileMimeType' => $baseDir . '/../lib/Check/FileMimeType.php', |
|
| 13 | - 'OCA\\WorkflowEngine\\Check\\FileName' => $baseDir . '/../lib/Check/FileName.php', |
|
| 14 | - 'OCA\\WorkflowEngine\\Check\\FileSize' => $baseDir . '/../lib/Check/FileSize.php', |
|
| 15 | - 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => $baseDir . '/../lib/Check/FileSystemTags.php', |
|
| 16 | - 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => $baseDir . '/../lib/Check/RequestRemoteAddress.php', |
|
| 17 | - 'OCA\\WorkflowEngine\\Check\\RequestTime' => $baseDir . '/../lib/Check/RequestTime.php', |
|
| 18 | - 'OCA\\WorkflowEngine\\Check\\RequestURL' => $baseDir . '/../lib/Check/RequestURL.php', |
|
| 19 | - 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => $baseDir . '/../lib/Check/RequestUserAgent.php', |
|
| 20 | - 'OCA\\WorkflowEngine\\Check\\TFileCheck' => $baseDir . '/../lib/Check/TFileCheck.php', |
|
| 21 | - 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => $baseDir . '/../lib/Check/UserGroupMembership.php', |
|
| 22 | - 'OCA\\WorkflowEngine\\Command\\Index' => $baseDir . '/../lib/Command/Index.php', |
|
| 23 | - 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => $baseDir . '/../lib/Controller/AWorkflowController.php', |
|
| 24 | - 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => $baseDir . '/../lib/Controller/GlobalWorkflowsController.php', |
|
| 25 | - 'OCA\\WorkflowEngine\\Controller\\RequestTime' => $baseDir . '/../lib/Controller/RequestTime.php', |
|
| 26 | - 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => $baseDir . '/../lib/Controller/UserWorkflowsController.php', |
|
| 27 | - 'OCA\\WorkflowEngine\\Entity\\File' => $baseDir . '/../lib/Entity/File.php', |
|
| 28 | - 'OCA\\WorkflowEngine\\Helper\\LogContext' => $baseDir . '/../lib/Helper/LogContext.php', |
|
| 29 | - 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => $baseDir . '/../lib/Helper/ScopeContext.php', |
|
| 30 | - 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => $baseDir . '/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
| 31 | - 'OCA\\WorkflowEngine\\Manager' => $baseDir . '/../lib/Manager.php', |
|
| 32 | - 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => $baseDir . '/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
| 33 | - 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => $baseDir . '/../lib/Migration/Version2000Date20190808074233.php', |
|
| 34 | - 'OCA\\WorkflowEngine\\Service\\Logger' => $baseDir . '/../lib/Service/Logger.php', |
|
| 35 | - 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => $baseDir . '/../lib/Service/RuleMatcher.php', |
|
| 36 | - 'OCA\\WorkflowEngine\\Settings\\ASettings' => $baseDir . '/../lib/Settings/ASettings.php', |
|
| 37 | - 'OCA\\WorkflowEngine\\Settings\\Admin' => $baseDir . '/../lib/Settings/Admin.php', |
|
| 38 | - 'OCA\\WorkflowEngine\\Settings\\Personal' => $baseDir . '/../lib/Settings/Personal.php', |
|
| 39 | - 'OCA\\WorkflowEngine\\Settings\\Section' => $baseDir . '/../lib/Settings/Section.php', |
|
| 9 | + 'OCA\\WorkflowEngine\\AppInfo\\Application' => $baseDir.'/../lib/AppInfo/Application.php', |
|
| 10 | + 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => $baseDir.'/../lib/BackgroundJobs/Rotate.php', |
|
| 11 | + 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => $baseDir.'/../lib/Check/AbstractStringCheck.php', |
|
| 12 | + 'OCA\\WorkflowEngine\\Check\\FileMimeType' => $baseDir.'/../lib/Check/FileMimeType.php', |
|
| 13 | + 'OCA\\WorkflowEngine\\Check\\FileName' => $baseDir.'/../lib/Check/FileName.php', |
|
| 14 | + 'OCA\\WorkflowEngine\\Check\\FileSize' => $baseDir.'/../lib/Check/FileSize.php', |
|
| 15 | + 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => $baseDir.'/../lib/Check/FileSystemTags.php', |
|
| 16 | + 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => $baseDir.'/../lib/Check/RequestRemoteAddress.php', |
|
| 17 | + 'OCA\\WorkflowEngine\\Check\\RequestTime' => $baseDir.'/../lib/Check/RequestTime.php', |
|
| 18 | + 'OCA\\WorkflowEngine\\Check\\RequestURL' => $baseDir.'/../lib/Check/RequestURL.php', |
|
| 19 | + 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => $baseDir.'/../lib/Check/RequestUserAgent.php', |
|
| 20 | + 'OCA\\WorkflowEngine\\Check\\TFileCheck' => $baseDir.'/../lib/Check/TFileCheck.php', |
|
| 21 | + 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => $baseDir.'/../lib/Check/UserGroupMembership.php', |
|
| 22 | + 'OCA\\WorkflowEngine\\Command\\Index' => $baseDir.'/../lib/Command/Index.php', |
|
| 23 | + 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => $baseDir.'/../lib/Controller/AWorkflowController.php', |
|
| 24 | + 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => $baseDir.'/../lib/Controller/GlobalWorkflowsController.php', |
|
| 25 | + 'OCA\\WorkflowEngine\\Controller\\RequestTime' => $baseDir.'/../lib/Controller/RequestTime.php', |
|
| 26 | + 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => $baseDir.'/../lib/Controller/UserWorkflowsController.php', |
|
| 27 | + 'OCA\\WorkflowEngine\\Entity\\File' => $baseDir.'/../lib/Entity/File.php', |
|
| 28 | + 'OCA\\WorkflowEngine\\Helper\\LogContext' => $baseDir.'/../lib/Helper/LogContext.php', |
|
| 29 | + 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => $baseDir.'/../lib/Helper/ScopeContext.php', |
|
| 30 | + 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => $baseDir.'/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
| 31 | + 'OCA\\WorkflowEngine\\Manager' => $baseDir.'/../lib/Manager.php', |
|
| 32 | + 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => $baseDir.'/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
| 33 | + 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => $baseDir.'/../lib/Migration/Version2000Date20190808074233.php', |
|
| 34 | + 'OCA\\WorkflowEngine\\Service\\Logger' => $baseDir.'/../lib/Service/Logger.php', |
|
| 35 | + 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => $baseDir.'/../lib/Service/RuleMatcher.php', |
|
| 36 | + 'OCA\\WorkflowEngine\\Settings\\ASettings' => $baseDir.'/../lib/Settings/ASettings.php', |
|
| 37 | + 'OCA\\WorkflowEngine\\Settings\\Admin' => $baseDir.'/../lib/Settings/Admin.php', |
|
| 38 | + 'OCA\\WorkflowEngine\\Settings\\Personal' => $baseDir.'/../lib/Settings/Personal.php', |
|
| 39 | + 'OCA\\WorkflowEngine\\Settings\\Section' => $baseDir.'/../lib/Settings/Section.php', |
|
| 40 | 40 | ); |
@@ -6,57 +6,57 @@ |
||
| 6 | 6 | |
| 7 | 7 | class ComposerStaticInitWorkflowEngine |
| 8 | 8 | { |
| 9 | - public static $prefixLengthsPsr4 = array ( |
|
| 9 | + public static $prefixLengthsPsr4 = array( |
|
| 10 | 10 | 'O' => |
| 11 | - array ( |
|
| 11 | + array( |
|
| 12 | 12 | 'OCA\\WorkflowEngine\\' => 19, |
| 13 | 13 | ), |
| 14 | 14 | ); |
| 15 | 15 | |
| 16 | - public static $prefixDirsPsr4 = array ( |
|
| 16 | + public static $prefixDirsPsr4 = array( |
|
| 17 | 17 | 'OCA\\WorkflowEngine\\' => |
| 18 | - array ( |
|
| 19 | - 0 => __DIR__ . '/..' . '/../lib', |
|
| 18 | + array( |
|
| 19 | + 0 => __DIR__.'/..'.'/../lib', |
|
| 20 | 20 | ), |
| 21 | 21 | ); |
| 22 | 22 | |
| 23 | - public static $classMap = array ( |
|
| 24 | - 'OCA\\WorkflowEngine\\AppInfo\\Application' => __DIR__ . '/..' . '/../lib/AppInfo/Application.php', |
|
| 25 | - 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => __DIR__ . '/..' . '/../lib/BackgroundJobs/Rotate.php', |
|
| 26 | - 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => __DIR__ . '/..' . '/../lib/Check/AbstractStringCheck.php', |
|
| 27 | - 'OCA\\WorkflowEngine\\Check\\FileMimeType' => __DIR__ . '/..' . '/../lib/Check/FileMimeType.php', |
|
| 28 | - 'OCA\\WorkflowEngine\\Check\\FileName' => __DIR__ . '/..' . '/../lib/Check/FileName.php', |
|
| 29 | - 'OCA\\WorkflowEngine\\Check\\FileSize' => __DIR__ . '/..' . '/../lib/Check/FileSize.php', |
|
| 30 | - 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => __DIR__ . '/..' . '/../lib/Check/FileSystemTags.php', |
|
| 31 | - 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => __DIR__ . '/..' . '/../lib/Check/RequestRemoteAddress.php', |
|
| 32 | - 'OCA\\WorkflowEngine\\Check\\RequestTime' => __DIR__ . '/..' . '/../lib/Check/RequestTime.php', |
|
| 33 | - 'OCA\\WorkflowEngine\\Check\\RequestURL' => __DIR__ . '/..' . '/../lib/Check/RequestURL.php', |
|
| 34 | - 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => __DIR__ . '/..' . '/../lib/Check/RequestUserAgent.php', |
|
| 35 | - 'OCA\\WorkflowEngine\\Check\\TFileCheck' => __DIR__ . '/..' . '/../lib/Check/TFileCheck.php', |
|
| 36 | - 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => __DIR__ . '/..' . '/../lib/Check/UserGroupMembership.php', |
|
| 37 | - 'OCA\\WorkflowEngine\\Command\\Index' => __DIR__ . '/..' . '/../lib/Command/Index.php', |
|
| 38 | - 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => __DIR__ . '/..' . '/../lib/Controller/AWorkflowController.php', |
|
| 39 | - 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => __DIR__ . '/..' . '/../lib/Controller/GlobalWorkflowsController.php', |
|
| 40 | - 'OCA\\WorkflowEngine\\Controller\\RequestTime' => __DIR__ . '/..' . '/../lib/Controller/RequestTime.php', |
|
| 41 | - 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => __DIR__ . '/..' . '/../lib/Controller/UserWorkflowsController.php', |
|
| 42 | - 'OCA\\WorkflowEngine\\Entity\\File' => __DIR__ . '/..' . '/../lib/Entity/File.php', |
|
| 43 | - 'OCA\\WorkflowEngine\\Helper\\LogContext' => __DIR__ . '/..' . '/../lib/Helper/LogContext.php', |
|
| 44 | - 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => __DIR__ . '/..' . '/../lib/Helper/ScopeContext.php', |
|
| 45 | - 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => __DIR__ . '/..' . '/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
| 46 | - 'OCA\\WorkflowEngine\\Manager' => __DIR__ . '/..' . '/../lib/Manager.php', |
|
| 47 | - 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => __DIR__ . '/..' . '/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
| 48 | - 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => __DIR__ . '/..' . '/../lib/Migration/Version2000Date20190808074233.php', |
|
| 49 | - 'OCA\\WorkflowEngine\\Service\\Logger' => __DIR__ . '/..' . '/../lib/Service/Logger.php', |
|
| 50 | - 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => __DIR__ . '/..' . '/../lib/Service/RuleMatcher.php', |
|
| 51 | - 'OCA\\WorkflowEngine\\Settings\\ASettings' => __DIR__ . '/..' . '/../lib/Settings/ASettings.php', |
|
| 52 | - 'OCA\\WorkflowEngine\\Settings\\Admin' => __DIR__ . '/..' . '/../lib/Settings/Admin.php', |
|
| 53 | - 'OCA\\WorkflowEngine\\Settings\\Personal' => __DIR__ . '/..' . '/../lib/Settings/Personal.php', |
|
| 54 | - 'OCA\\WorkflowEngine\\Settings\\Section' => __DIR__ . '/..' . '/../lib/Settings/Section.php', |
|
| 23 | + public static $classMap = array( |
|
| 24 | + 'OCA\\WorkflowEngine\\AppInfo\\Application' => __DIR__.'/..'.'/../lib/AppInfo/Application.php', |
|
| 25 | + 'OCA\\WorkflowEngine\\BackgroundJobs\\Rotate' => __DIR__.'/..'.'/../lib/BackgroundJobs/Rotate.php', |
|
| 26 | + 'OCA\\WorkflowEngine\\Check\\AbstractStringCheck' => __DIR__.'/..'.'/../lib/Check/AbstractStringCheck.php', |
|
| 27 | + 'OCA\\WorkflowEngine\\Check\\FileMimeType' => __DIR__.'/..'.'/../lib/Check/FileMimeType.php', |
|
| 28 | + 'OCA\\WorkflowEngine\\Check\\FileName' => __DIR__.'/..'.'/../lib/Check/FileName.php', |
|
| 29 | + 'OCA\\WorkflowEngine\\Check\\FileSize' => __DIR__.'/..'.'/../lib/Check/FileSize.php', |
|
| 30 | + 'OCA\\WorkflowEngine\\Check\\FileSystemTags' => __DIR__.'/..'.'/../lib/Check/FileSystemTags.php', |
|
| 31 | + 'OCA\\WorkflowEngine\\Check\\RequestRemoteAddress' => __DIR__.'/..'.'/../lib/Check/RequestRemoteAddress.php', |
|
| 32 | + 'OCA\\WorkflowEngine\\Check\\RequestTime' => __DIR__.'/..'.'/../lib/Check/RequestTime.php', |
|
| 33 | + 'OCA\\WorkflowEngine\\Check\\RequestURL' => __DIR__.'/..'.'/../lib/Check/RequestURL.php', |
|
| 34 | + 'OCA\\WorkflowEngine\\Check\\RequestUserAgent' => __DIR__.'/..'.'/../lib/Check/RequestUserAgent.php', |
|
| 35 | + 'OCA\\WorkflowEngine\\Check\\TFileCheck' => __DIR__.'/..'.'/../lib/Check/TFileCheck.php', |
|
| 36 | + 'OCA\\WorkflowEngine\\Check\\UserGroupMembership' => __DIR__.'/..'.'/../lib/Check/UserGroupMembership.php', |
|
| 37 | + 'OCA\\WorkflowEngine\\Command\\Index' => __DIR__.'/..'.'/../lib/Command/Index.php', |
|
| 38 | + 'OCA\\WorkflowEngine\\Controller\\AWorkflowController' => __DIR__.'/..'.'/../lib/Controller/AWorkflowController.php', |
|
| 39 | + 'OCA\\WorkflowEngine\\Controller\\GlobalWorkflowsController' => __DIR__.'/..'.'/../lib/Controller/GlobalWorkflowsController.php', |
|
| 40 | + 'OCA\\WorkflowEngine\\Controller\\RequestTime' => __DIR__.'/..'.'/../lib/Controller/RequestTime.php', |
|
| 41 | + 'OCA\\WorkflowEngine\\Controller\\UserWorkflowsController' => __DIR__.'/..'.'/../lib/Controller/UserWorkflowsController.php', |
|
| 42 | + 'OCA\\WorkflowEngine\\Entity\\File' => __DIR__.'/..'.'/../lib/Entity/File.php', |
|
| 43 | + 'OCA\\WorkflowEngine\\Helper\\LogContext' => __DIR__.'/..'.'/../lib/Helper/LogContext.php', |
|
| 44 | + 'OCA\\WorkflowEngine\\Helper\\ScopeContext' => __DIR__.'/..'.'/../lib/Helper/ScopeContext.php', |
|
| 45 | + 'OCA\\WorkflowEngine\\Listener\\LoadAdditionalSettingsScriptsListener' => __DIR__.'/..'.'/../lib/Listener/LoadAdditionalSettingsScriptsListener.php', |
|
| 46 | + 'OCA\\WorkflowEngine\\Manager' => __DIR__.'/..'.'/../lib/Manager.php', |
|
| 47 | + 'OCA\\WorkflowEngine\\Migration\\PopulateNewlyIntroducedDatabaseFields' => __DIR__.'/..'.'/../lib/Migration/PopulateNewlyIntroducedDatabaseFields.php', |
|
| 48 | + 'OCA\\WorkflowEngine\\Migration\\Version2000Date20190808074233' => __DIR__.'/..'.'/../lib/Migration/Version2000Date20190808074233.php', |
|
| 49 | + 'OCA\\WorkflowEngine\\Service\\Logger' => __DIR__.'/..'.'/../lib/Service/Logger.php', |
|
| 50 | + 'OCA\\WorkflowEngine\\Service\\RuleMatcher' => __DIR__.'/..'.'/../lib/Service/RuleMatcher.php', |
|
| 51 | + 'OCA\\WorkflowEngine\\Settings\\ASettings' => __DIR__.'/..'.'/../lib/Settings/ASettings.php', |
|
| 52 | + 'OCA\\WorkflowEngine\\Settings\\Admin' => __DIR__.'/..'.'/../lib/Settings/Admin.php', |
|
| 53 | + 'OCA\\WorkflowEngine\\Settings\\Personal' => __DIR__.'/..'.'/../lib/Settings/Personal.php', |
|
| 54 | + 'OCA\\WorkflowEngine\\Settings\\Section' => __DIR__.'/..'.'/../lib/Settings/Section.php', |
|
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | public static function getInitializer(ClassLoader $loader) |
| 58 | 58 | { |
| 59 | - return \Closure::bind(function () use ($loader) { |
|
| 59 | + return \Closure::bind(function() use ($loader) { |
|
| 60 | 60 | $loader->prefixLengthsPsr4 = ComposerStaticInitWorkflowEngine::$prefixLengthsPsr4; |
| 61 | 61 | $loader->prefixDirsPsr4 = ComposerStaticInitWorkflowEngine::$prefixDirsPsr4; |
| 62 | 62 | $loader->classMap = ComposerStaticInitWorkflowEngine::$classMap; |