1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* Analytics |
4
|
|
|
* |
5
|
|
|
* SPDX-FileCopyrightText: 2019-2022 Marcel Scherello |
6
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later |
7
|
|
|
*/ |
8
|
|
|
|
9
|
|
|
namespace OCA\Analytics\AppInfo; |
10
|
|
|
|
11
|
|
|
use OCA\Analytics\ContextChat\ContentProvider; |
12
|
|
|
use OCA\Analytics\Dashboard\Widget; |
13
|
|
|
use OCA\Analytics\Flow\FlowOperation; |
14
|
|
|
// use OCA\Analytics\Listener\LoadAdditionalScripts; |
15
|
|
|
use OCA\Analytics\Listener\UserDeletedListener; |
16
|
|
|
use OCA\Analytics\Notification\Notifier; |
17
|
|
|
use OCA\Analytics\Search\SearchProvider; |
18
|
|
|
use OCA\Analytics\Listener\ReferenceListener; |
19
|
|
|
use OCA\Analytics\Reference\ReferenceProvider; |
20
|
|
|
// use OCA\Files\Event\LoadAdditionalScriptsEvent; |
21
|
|
|
use OCP\AppFramework\App; |
|
|
|
|
22
|
|
|
use OCP\AppFramework\Bootstrap\IBootContext; |
|
|
|
|
23
|
|
|
use OCP\AppFramework\Bootstrap\IBootstrap; |
|
|
|
|
24
|
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext; |
|
|
|
|
25
|
|
|
use OCP\EventDispatcher\IEventDispatcher; |
|
|
|
|
26
|
|
|
use OCP\User\Events\UserDeletedEvent; |
|
|
|
|
27
|
|
|
use OCP\Collaboration\Reference\RenderReferenceEvent; |
|
|
|
|
28
|
|
|
use Psr\Container\ContainerInterface; |
|
|
|
|
29
|
|
|
use OCP\WorkflowEngine\Events\RegisterOperationsEvent; |
|
|
|
|
30
|
|
|
use OCA\ContextChat\Event\ContentProviderRegisterEvent; |
|
|
|
|
31
|
|
|
|
32
|
|
|
class Application extends App implements IBootstrap { |
33
|
|
|
public const APP_ID = 'analytics'; |
34
|
|
|
|
35
|
|
|
public function __construct(array $urlParams = []) { |
36
|
|
|
parent::__construct(self::APP_ID, $urlParams); |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
public function register(IRegistrationContext $context): void { |
40
|
|
|
$context->registerDashboardWidget(Widget::class); |
41
|
|
|
|
42
|
|
|
$context->registerSearchProvider(SearchProvider::class); |
43
|
|
|
|
44
|
|
|
// file actions are not working at the moment |
45
|
|
|
// $context->registerEventListener(LoadAdditionalScriptsEvent::class, LoadAdditionalScripts::class); |
46
|
|
|
$context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class); |
47
|
|
|
$context->registerEventListener(RegisterOperationsEvent::class, FlowOperation::class); |
48
|
|
|
$context->registerEventListener(ContentProviderRegisterEvent::class, ContentProvider::class); |
49
|
|
|
|
50
|
|
|
if (method_exists($context, 'registerReferenceProvider')) { |
51
|
|
|
$context->registerReferenceProvider(ReferenceProvider::class); |
52
|
|
|
$context->registerEventListener(RenderReferenceEvent::class, ReferenceListener::class); |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
$this->registerNotifications(); |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
public function boot(IBootContext $context): void { |
59
|
|
|
} |
60
|
|
|
|
61
|
|
|
protected function registerNotifications(): void { |
62
|
|
|
$notificationManager = \OC::$server->getNotificationManager(); |
63
|
|
|
$notificationManager->registerNotifierService(Notifier::class); |
64
|
|
|
} |
65
|
|
|
} |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths