1 | <?php |
||
2 | |||
3 | namespace Toothless\LazyImageBundle; |
||
4 | |||
5 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
6 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
7 | use Toothless\LazyImageBundle\DependencyInjection\CompilerPass\RegisterConverterCompilerPass; |
||
8 | |||
9 | /** |
||
10 | * Class LazyImageBundle |
||
11 | */ |
||
12 | class LazyImageBundle extends Bundle |
||
13 | { |
||
14 | /** |
||
15 | * {@inheritdoc} |
||
16 | */ |
||
17 | 1 | public function build(ContainerBuilder $container) |
|
18 | { |
||
19 | 1 | parent::build($container); |
|
20 | |||
21 | 1 | $container->addCompilerPass(new RegisterConverterCompilerPass()); |
|
22 | 1 | } |
|
23 | } |
||
24 |