1 | <?php |
||
2 | declare(strict_types=1); |
||
3 | /** |
||
4 | * @copyright Copyright (c) 2016, Roeland Jago Douma <[email protected]> |
||
5 | * @copyright Copyright (c) 2017-2022 Matias De lellis <[email protected]> |
||
6 | * @copyright Copyright (c) 2020 Xiangbin Li >[email protected]> |
||
7 | * |
||
8 | * @author Roeland Jago Douma <[email protected]> |
||
9 | * @author Matias De lellis <[email protected]> |
||
10 | * |
||
11 | * @license GNU AGPL version 3 or any later version |
||
12 | * |
||
13 | * This program is free software: you can redistribute it and/or modify |
||
14 | * it under the terms of the GNU Affero General Public License as |
||
15 | * published by the Free Software Foundation, either version 3 of the |
||
16 | * License, or (at your option) any later version. |
||
17 | * |
||
18 | * This program is distributed in the hope that it will be useful, |
||
19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
21 | * GNU Affero General Public License for more details. |
||
22 | * |
||
23 | * You should have received a copy of the GNU Affero General Public License |
||
24 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
||
25 | * |
||
26 | */ |
||
27 | |||
28 | namespace OCA\FaceRecognition\AppInfo; |
||
29 | |||
30 | use OCP\AppFramework\App; |
||
31 | use OCP\AppFramework\Bootstrap\IBootstrap; |
||
32 | use OCP\AppFramework\Bootstrap\IBootContext; |
||
33 | use OCP\AppFramework\Bootstrap\IRegistrationContext; |
||
34 | |||
35 | use OCP\EventDispatcher\IEventDispatcher; |
||
36 | |||
37 | use OCA\Files\Event\LoadSidebar; |
||
0 ignored issues
–
show
|
|||
38 | use OCP\Files\Events\Node\NodeDeletedEvent; |
||
39 | use OCP\Files\Events\Node\NodeWrittenEvent; |
||
40 | use OCP\User\Events\UserDeletedEvent; |
||
41 | |||
42 | use OCA\FaceRecognition\Listener\LoadSidebarListener; |
||
43 | use OCA\FaceRecognition\Listener\PostDeleteListener; |
||
44 | use OCA\FaceRecognition\Listener\PostWriteListener; |
||
45 | use OCA\FaceRecognition\Listener\UserDeletedListener; |
||
46 | |||
47 | use OCA\FaceRecognition\Search\PersonSearchProvider; |
||
48 | |||
49 | class Application extends App implements IBootstrap { |
||
50 | |||
51 | /** @var string */ |
||
52 | public const APP_NAME = 'facerecognition'; |
||
53 | |||
54 | /** @var string */ |
||
55 | public const API_VERSIONS = ['v1', '2.0']; |
||
56 | |||
57 | /** |
||
58 | * Application constructor. |
||
59 | * |
||
60 | * @param array $urlParams |
||
61 | */ |
||
62 | public function __construct(array $urlParams = []) { |
||
63 | parent::__construct(self::APP_NAME, $urlParams); |
||
64 | } |
||
65 | |||
66 | public function register(IRegistrationContext $context): void { |
||
67 | $context->registerSearchProvider(PersonSearchProvider::class); |
||
68 | |||
69 | $context->registerCapability(Capabilities::class); |
||
70 | |||
71 | $context->registerEventListener(LoadSidebar::class, LoadSidebarListener::class); |
||
72 | $context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class); |
||
73 | |||
74 | $context->registerEventListener(NodeWrittenEvent::class, PostWriteListener::class); |
||
75 | $context->registerEventListener(NodeDeletedEvent::class, PostDeleteListener::class); |
||
76 | } |
||
77 | |||
78 | public function boot(IBootContext $context): void { |
||
79 | } |
||
80 | |||
81 | } |
||
82 |
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