|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of the LuneticsTimezoneBundle package. |
|
4
|
|
|
* |
|
5
|
|
|
* <https://github.com/lunetics/TimezoneBundle/> |
|
6
|
|
|
* |
|
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
8
|
|
|
* file that is distributed with this source code. |
|
9
|
|
|
*/ |
|
10
|
|
|
|
|
11
|
|
|
namespace Lunetics\TimezoneBundle; |
|
12
|
|
|
|
|
13
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
14
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
15
|
|
|
|
|
16
|
|
|
use Lunetics\TimezoneBundle\DependencyInjection\Compiler\GuesserCompilerPass; |
|
17
|
|
|
|
|
18
|
|
|
/** |
|
19
|
|
|
* Lunetics Timezonebundle |
|
20
|
|
|
*/ |
|
21
|
|
|
class LuneticsTimezoneBundle extends Bundle |
|
22
|
|
|
{ |
|
23
|
|
|
/** |
|
24
|
|
|
* Add Compilerpass |
|
25
|
|
|
* |
|
26
|
|
|
* @param \Symfony\Component\DependencyInjection\ContainerBuilder $container |
|
27
|
|
|
*/ |
|
28
|
|
|
public function build(ContainerBuilder $container) |
|
29
|
|
|
{ |
|
30
|
|
|
parent::build($container); |
|
31
|
|
|
|
|
32
|
|
|
$container->addCompilerPass(new GuesserCompilerPass()); |
|
33
|
|
|
} |
|
34
|
|
|
|
|
35
|
|
|
} |
|
36
|
|
|
|