1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
7
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
8
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
9
|
|
|
* |
10
|
|
|
* Copyright (c) 2024 Mykhailo Shtanko [email protected] |
11
|
|
|
* |
12
|
|
|
* For the full copyright and license information, please view the LICENSE.MD |
13
|
|
|
* file that was distributed with this source code. |
14
|
|
|
*/ |
15
|
|
|
|
16
|
|
|
namespace FRZB\Component\DependencyInjection; |
17
|
|
|
|
18
|
|
|
use FRZB\Component\DependencyInjection\Compiler\RegisterAsAliasAttributesPass; |
19
|
|
|
use FRZB\Component\DependencyInjection\Compiler\RegisterAsDecoratorAttributesPass; |
20
|
|
|
use FRZB\Component\DependencyInjection\Compiler\RegisterAsDeprecatedAttributesPass; |
21
|
|
|
use FRZB\Component\DependencyInjection\Compiler\RegisterAsIgnoredAttributesPass; |
22
|
|
|
use FRZB\Component\DependencyInjection\Compiler\RegisterAsServiceAttributePass; |
23
|
|
|
use FRZB\Component\DependencyInjection\Compiler\RegisterAsTaggedAttributesPass; |
24
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
25
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle; |
26
|
|
|
|
27
|
|
|
final class DependencyInjectionBundle extends Bundle |
28
|
|
|
{ |
29
|
|
|
public function build(ContainerBuilder $container): void |
30
|
|
|
{ |
31
|
|
|
$container |
32
|
|
|
->addCompilerPass(new RegisterAsAliasAttributesPass()) |
33
|
|
|
->addCompilerPass(new RegisterAsServiceAttributePass()) |
34
|
|
|
->addCompilerPass(new RegisterAsTaggedAttributesPass()) |
35
|
|
|
->addCompilerPass(new RegisterAsIgnoredAttributesPass()) |
36
|
|
|
->addCompilerPass(new RegisterAsDecoratorAttributesPass()) |
37
|
|
|
->addCompilerPass(new RegisterAsDeprecatedAttributesPass()) |
38
|
|
|
; |
39
|
|
|
} |
40
|
|
|
} |
41
|
|
|
|