1 | <?php |
||
2 | |||
3 | namespace RedirectionIO\Client\ProxySymfony\DependencyInjection; |
||
4 | |||
5 | use RedirectionIO\Client\ProxySymfony\EventListener\RequestResponseListener; |
||
6 | use RedirectionIO\Client\Sdk\Client; |
||
7 | use Symfony\Component\Config\FileLocator; |
||
0 ignored issues
–
show
|
|||
8 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
0 ignored issues
–
show
The type
Symfony\Component\Depend...ection\ContainerBuilder 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\DependencyInjection\Loader\XmlFileLoader; |
||
0 ignored issues
–
show
The type
Symfony\Component\Depend...on\Loader\XmlFileLoader 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 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
||
11 | |||
12 | class RedirectionIOExtension extends Extension |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | public function load(array $configs, ContainerBuilder $container) |
||
18 | { |
||
19 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
20 | $loader->load('services.xml'); |
||
21 | |||
22 | $configuration = new Configuration(); |
||
23 | $config = $this->processConfiguration($configuration, $configs); |
||
24 | |||
25 | foreach ($config['connections'] as $name => $connection) { |
||
26 | $connections[$name] = $container->resolveEnvPlaceholders($connection); |
||
27 | } |
||
28 | |||
29 | $container |
||
30 | ->getDefinition(Client::class) |
||
31 | ->replaceArgument(0, $connections) |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
32 | ->replaceArgument(2, $config['debug']) |
||
33 | ; |
||
34 | |||
35 | $container |
||
36 | ->getDefinition(RequestResponseListener::class) |
||
37 | ->replaceArgument(1, $config['excluded_prefixes']) |
||
38 | ; |
||
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