| 1 | <?php |
||
| 2 | |||
| 3 | namespace Flawlol\FacadeIdeHelper\Command; |
||
| 4 | |||
| 5 | use Flawlol\FacadeIdeHelper\Interface\ProcessInterface; |
||
| 6 | use Symfony\Component\Console\Attribute\AsCommand; |
||
|
0 ignored issues
–
show
|
|||
| 7 | use Symfony\Component\Console\Command\Command; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Console\Command\Command 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 Loading history...
|
|||
| 8 | 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 Loading history...
|
|||
| 9 | 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 Loading history...
|
|||
| 10 | |||
| 11 | #[AsCommand(name: 'app:generate-facade-helpers', description: 'Generate Facade helpers for IDE')] |
||
| 12 | class IdeHelperCommand extends Command |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * IdeHelperCommand constructor. |
||
| 16 | * |
||
| 17 | * @param ProcessInterface $process The process interface for generating facade helpers. |
||
| 18 | */ |
||
| 19 | public function __construct(private ProcessInterface $process) |
||
| 20 | { |
||
| 21 | parent::__construct(); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Execute the console command. |
||
| 26 | * |
||
| 27 | * @param InputInterface $input The input interface. |
||
| 28 | * @param OutputInterface $output The output interface. |
||
| 29 | * |
||
| 30 | * @return int The command exit status. |
||
| 31 | */ |
||
| 32 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 33 | { |
||
| 34 | $this->process->__invoke(); |
||
| 35 | |||
| 36 | $output->writeln('Facade helpers file generated successfully!'); |
||
| 37 | |||
| 38 | return Command::SUCCESS; |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
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