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\Command; |
||
10 | |||
11 | use OCA\Analytics\Service\DataloadService; |
||
12 | use Symfony\Component\Console\Command\Command; |
||
0 ignored issues
–
show
|
|||
13 | use Symfony\Component\Console\Input\InputArgument; |
||
0 ignored issues
–
show
The type
Symfony\Component\Console\Input\InputArgument was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
14 | use Symfony\Component\Console\Input\InputInterface; |
||
0 ignored issues
–
show
The type
Symfony\Component\Console\Input\InputInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
15 | use Symfony\Component\Console\Output\OutputInterface; |
||
0 ignored issues
–
show
The type
Symfony\Component\Console\Output\OutputInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
16 | |||
17 | class Load extends Command |
||
18 | { |
||
19 | |||
20 | private $DataloadService; |
||
21 | |||
22 | public function __construct( |
||
23 | DataloadService $DataloadService |
||
24 | ) |
||
25 | { |
||
26 | $this->DataloadService = $DataloadService; |
||
27 | parent::__construct(); |
||
28 | } |
||
29 | |||
30 | protected function configure() |
||
31 | { |
||
32 | $this |
||
33 | ->setName('analytics:load') |
||
34 | ->setDescription('execute a dataload') |
||
35 | ->addArgument( |
||
36 | 'dataloadId', |
||
37 | InputArgument::REQUIRED, |
||
38 | 'data load to be executed' |
||
39 | ); |
||
40 | } |
||
41 | |||
42 | protected function execute(InputInterface $input, OutputInterface $output) |
||
43 | { |
||
44 | $dataloadId = $input->getArgument('dataloadId'); |
||
45 | $this->DataloadService->execute((int)$dataloadId); |
||
46 | return 0; |
||
47 | } |
||
48 | } |
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