Passed
Push — main ( c0d955...7afd54 )
by Fractal
12:32
created

DependencyInjectionBundle.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This is package for Symfony framework.
7
 *
8
 * (c) Mykhailo Shtanko <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace FRZB\Component\DependencyInjection;
15
16
use FRZB\Component\DependencyInjection\Compiler\RegisterAsAliasAttributesPass;
17
use FRZB\Component\DependencyInjection\Compiler\RegisterAsDecoratorAttributesPass;
18
use FRZB\Component\DependencyInjection\Compiler\RegisterAsDeprecatedAttributesPass;
19
use FRZB\Component\DependencyInjection\Compiler\RegisterAsIgnoredAttributesPass;
20
use FRZB\Component\DependencyInjection\Compiler\RegisterAsServiceAttributePass;
21
use FRZB\Component\DependencyInjection\Compiler\RegisterAsTaggedAttributesPass;
22
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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
23
use Symfony\Component\HttpKernel\Bundle\Bundle;
24
25
final class DependencyInjectionBundle extends Bundle
26
{
27
    public function build(ContainerBuilder $container): void
28
    {
29
        $container
30
            ->addCompilerPass(new RegisterAsAliasAttributesPass())
31
            ->addCompilerPass(new RegisterAsServiceAttributePass())
32
            ->addCompilerPass(new RegisterAsTaggedAttributesPass())
33
            ->addCompilerPass(new RegisterAsIgnoredAttributesPass())
34
            ->addCompilerPass(new RegisterAsDecoratorAttributesPass())
35
            ->addCompilerPass(new RegisterAsDeprecatedAttributesPass())
36
        ;
37
    }
38
}
39