1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace GoetasWebservices\SoapServices\Metadata\DependencyInjection\Compiler; |
||
6 | |||
7 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; |
||
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 ![]() |
|||
9 | |||
10 | class CleanupPass implements CompilerPassInterface |
||
11 | { |
||
12 | public function process(ContainerBuilder $container): void |
||
13 | { |
||
14 | // if there are no metadata, then we are in debug mode, no need to clean up the container |
||
15 | if (!$container->getParameter('goetas_webservices.soap.metadata')) { |
||
16 | return; |
||
17 | } |
||
18 | |||
19 | foreach ($container->getDefinitions() as $id => $definition) { |
||
20 | if (false === strpos($id, 'goetas_webservices.soap.metadata_loader.array') && !$definition->isSynthetic() && $definition->isPublic()) { |
||
21 | $definition->setPublic(false); |
||
22 | } |
||
23 | } |
||
24 | } |
||
25 | } |
||
26 |
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