1 | <?php |
||
2 | |||
3 | /** |
||
4 | * For the full copyright and license information, please view |
||
5 | * the LICENSE file that was distributed with this source code. |
||
6 | * |
||
7 | * @see https://github.com/ecphp |
||
8 | */ |
||
9 | |||
10 | declare(strict_types=1); |
||
11 | |||
12 | namespace EcPhp\CasBundle\DependencyInjection; |
||
13 | |||
14 | use Symfony\Component\Config\FileLocator; |
||
15 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
0 ignored issues
–
show
|
|||
16 | use Symfony\Component\DependencyInjection\Loader\PhpFileLoader; |
||
0 ignored issues
–
show
The type
Symfony\Component\Depend...on\Loader\PhpFileLoader 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 ![]() |
|||
17 | use Symfony\Component\HttpKernel\DependencyInjection\Extension; |
||
18 | |||
19 | final class CasExtension extends Extension |
||
20 | { |
||
21 | /** |
||
22 | * @param array<string> $configs |
||
23 | */ |
||
24 | public function load(array $configs, ContainerBuilder $container): void |
||
25 | { |
||
26 | $configuration = new Configuration(); |
||
27 | $config = $this->processConfiguration($configuration, $configs); |
||
28 | |||
29 | // Load CAS configuration. |
||
30 | $container->setParameter('cas', $config); |
||
31 | |||
32 | // Load CAS services. |
||
33 | $loader = new PhpFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
34 | $loader->load('services.php'); |
||
35 | } |
||
36 | } |
||
37 |
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