1 | <?php |
||
2 | |||
3 | namespace Gravatalonga\Framework\Console; |
||
4 | |||
5 | use Gravatalonga\Interfaces\ServiceProviderInterface; |
||
0 ignored issues
–
show
|
|||
6 | use Symfony\Component\Console\Application; |
||
0 ignored issues
–
show
The type
Symfony\Component\Console\Application 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 ![]() |
|||
7 | use Psr\Container\ContainerInterface; |
||
8 | |||
9 | class ServiceProvider implements ServiceProviderInterface |
||
10 | { |
||
11 | public function register(): array |
||
12 | { |
||
13 | return [ |
||
14 | 'console' => function(ContainerInterface $container) { |
||
15 | $application = new Application(); |
||
16 | |||
17 | $commands = $container->get('config.console'); |
||
18 | foreach ($commands as $command) { |
||
19 | $command = $container->get($command); |
||
20 | $application->add($command); |
||
21 | } |
||
22 | |||
23 | return $application; |
||
24 | } |
||
25 | ]; |
||
26 | } |
||
27 | } |
||
28 |
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