savinmikhail /
symfony-profiler-response-bundle
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace SavinMikhail\ResponseProfilerBundle\DependencyInjection; |
||
| 6 | |||
| 7 | use Symfony\Component\Config\FileLocator; |
||
| 8 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
| 9 | use Symfony\Component\DependencyInjection\Extension\Extension; |
||
| 10 | use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; |
||
| 11 | |||
| 12 | final class ResponseProfilerExtension extends Extension |
||
| 13 | { |
||
| 14 | 1 | public function load(array $configs, ContainerBuilder $container): void |
|
| 15 | { |
||
| 16 | 1 | $configuration = new Configuration(); |
|
|
0 ignored issues
–
show
|
|||
| 17 | 1 | $config = $this->processConfiguration(configuration: $configuration, configs: $configs); |
|
| 18 | |||
| 19 | 1 | $container->setParameter(name: 'response_profiler.enabled', value: (bool) $config['enabled']); |
|
| 20 | 1 | $container->setParameter(name: 'response_profiler.max_length', value: (int) $config['max_length']); |
|
| 21 | 1 | $container->setParameter(name: 'response_profiler.allowed_mime_types', value: (array) $config['allowed_mime_types']); |
|
| 22 | |||
| 23 | 1 | $loader = new YamlFileLoader(container: $container, locator: new FileLocator(paths: __DIR__ . '/../Resources/config')); |
|
| 24 | 1 | $loader->load(resource: 'services.yaml'); |
|
| 25 | } |
||
| 26 | } |
||
| 27 |
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