forked from KnpLabs/KnpPaginatorBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
KnpPaginatorBundle.php
29 lines (25 loc) · 965 Bytes
/
KnpPaginatorBundle.php
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
<?php
/**
* (c) Thibault Duplessis <[email protected]>.
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Knp\Bundle\PaginatorBundle;
use Knp\Bundle\PaginatorBundle\DependencyInjection\Compiler\PaginatorAwarePass;
use Knp\Bundle\PaginatorBundle\DependencyInjection\Compiler\PaginatorConfigurationPass;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
final class KnpPaginatorBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container): void
{
parent::build($container);
$container->addCompilerPass(new PaginatorConfigurationPass(), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new PaginatorAwarePass(), PassConfig::TYPE_BEFORE_REMOVING);
}
}