1 | <?php |
||
2 | |||
3 | namespace Bankiru\Seo; |
||
4 | |||
5 | use Bankiru\Seo\DependencyInjection\BankiruSeoEngineExtension; |
||
6 | use Bankiru\Seo\DependencyInjection\Compiler\LinkGeneratorPass; |
||
7 | use Bankiru\Seo\DependencyInjection\Compiler\RouterPass; |
||
8 | use Bankiru\Seo\DependencyInjection\Compiler\SeoSourcePass; |
||
9 | use Bankiru\Seo\DependencyInjection\Compiler\SlugNormalizerPass; |
||
10 | use Symfony\Component\DependencyInjection\Compiler\PassConfig; |
||
11 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
||
12 | use Symfony\Component\HttpKernel\Bundle\Bundle; |
||
13 | |||
14 | final class BankiruSeoEngineBundle extends Bundle |
||
15 | { |
||
16 | 1 | public function build(ContainerBuilder $container) |
|
17 | { |
||
18 | 1 | $container->addCompilerPass(new SeoSourcePass(), PassConfig::TYPE_OPTIMIZE); |
|
19 | 1 | $container->addCompilerPass(new LinkGeneratorPass()); |
|
20 | 1 | $container->addCompilerPass(new SlugNormalizerPass()); |
|
21 | 1 | $container->addCompilerPass(new RouterPass()); |
|
22 | 1 | } |
|
23 | |||
24 | 1 | public function getContainerExtension() |
|
25 | { |
||
26 | 1 | return new BankiruSeoEngineExtension(); |
|
27 | } |
||
28 | } |
||
29 |