| 1 | <?php |
||
| 23 | class FOSHttpCacheBundle extends Bundle |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 2 | public function build(ContainerBuilder $container) |
|
| 29 | { |
||
| 30 | 2 | $container->addCompilerPass(new LoggerPass()); |
|
| 31 | 2 | $container->addCompilerPass(new TagListenerPass()); |
|
| 32 | 2 | $container->addCompilerPass(new HashGeneratorPass()); |
|
| 33 | 2 | if (version_compare(Kernel::VERSION, '3.4', '>=') |
|
| 34 | 2 | && version_compare(Kernel::VERSION, '4.1', '<') |
|
| 35 | ) { |
||
| 36 | $container->addCompilerPass(new SessionListenerRemovePass()); |
||
| 37 | } |
||
| 38 | 2 | } |
|
| 39 | |||
| 40 | 4 | public function registerCommands(Application $application) |
|
| 44 | } |
||
| 45 |