|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/* |
|
4
|
|
|
* This file is part of the Ivory Google Map bundle package. |
|
5
|
|
|
* |
|
6
|
|
|
* (c) Eric GELOEN <[email protected]> |
|
7
|
|
|
* |
|
8
|
|
|
* For the full copyright and license information, please read the LICENSE |
|
9
|
|
|
* file that was distributed with this source code. |
|
10
|
|
|
*/ |
|
11
|
|
|
|
|
12
|
|
|
namespace Ivory\GoogleMapBundle; |
|
13
|
|
|
|
|
14
|
|
|
use Ivory\GoogleMapBundle\DependencyInjection\Compiler\CleanTemplatingPass; |
|
15
|
|
|
use Ivory\GoogleMapBundle\DependencyInjection\Compiler\PublicForTestsCompilerPass; |
|
16
|
|
|
use Ivory\GoogleMapBundle\DependencyInjection\Compiler\RegisterControlRendererPass; |
|
17
|
|
|
use Ivory\GoogleMapBundle\DependencyInjection\Compiler\RegisterExtendableRendererPass; |
|
18
|
|
|
use Ivory\GoogleMapBundle\DependencyInjection\Compiler\RegisterFormResourcePass; |
|
19
|
|
|
use Ivory\GoogleMapBundle\DependencyInjection\Compiler\RegisterHelperListenerPass; |
|
20
|
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder; |
|
21
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle; |
|
22
|
|
|
|
|
23
|
|
|
/** |
|
24
|
|
|
* @author GeLo <[email protected]> |
|
25
|
|
|
*/ |
|
26
|
|
|
class IvoryGoogleMapBundle extends Bundle |
|
27
|
|
|
{ |
|
28
|
|
|
/** |
|
29
|
|
|
* {@inheritdoc} |
|
30
|
|
|
*/ |
|
31
|
75 |
|
public function build(ContainerBuilder $container) |
|
32
|
|
|
{ |
|
33
|
|
|
$container |
|
34
|
75 |
|
->addCompilerPass(new CleanTemplatingPass()) |
|
35
|
75 |
|
->addCompilerPass(new RegisterControlRendererPass()) |
|
36
|
75 |
|
->addCompilerPass(new RegisterExtendableRendererPass()) |
|
37
|
75 |
|
->addCompilerPass(new RegisterFormResourcePass()) |
|
38
|
75 |
|
->addCompilerPass(new RegisterHelperListenerPass()) |
|
39
|
75 |
|
->addCompilerPass(new PublicForTestsCompilerPass()); |
|
40
|
75 |
|
} |
|
41
|
|
|
} |
|
42
|
|
|
|