-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlphaLabsPaginationBundle.php
More file actions
40 lines (34 loc) · 1.03 KB
/
AlphaLabsPaginationBundle.php
File metadata and controls
40 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
* This file licensed under the MIT license.
*
* (c) Sylvain Mauduit <swop@swop.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace AlphaLabs\Bundle\PaginationBundle;
use AlphaLabs\Bundle\PaginationBundle\DependencyInjection\AlphaLabsPaginationExtension;
use AlphaLabs\Bundle\PaginationBundle\DependencyInjection\Compiler\FactoryCompilerPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class AlphaLabsPaginationBundle extends Bundle
{
/**
* {@inheritDoc}
*/
public function getContainerExtension() {
if (null === $this->extension) {
$this->extension = new AlphaLabsPaginationExtension();
}
return $this->extension;
}
/**
* {@inheritDoc}
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new FactoryCompilerPass());
}
}