vendor/knplabs/knp-paginator-bundle/KnpPaginatorBundle.php line 18

Open in your IDE?
  1. <?php
  2. /**
  3.  * (c) Thibault Duplessis <thibault.duplessis@gmail.com>
  4.  *
  5.  * This source file is subject to the MIT license that is bundled
  6.  * with this source code in the file LICENSE.
  7.  */
  8. namespace Knp\Bundle\PaginatorBundle;
  9. use Knp\Bundle\PaginatorBundle\DependencyInjection\Compiler\PaginatorAwarePass;
  10. use Knp\Bundle\PaginatorBundle\DependencyInjection\Compiler\PaginatorConfigurationPass;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\DependencyInjection\Compiler\PassConfig;
  14. class KnpPaginatorBundle extends Bundle
  15. {
  16.     /**
  17.      * {@inheritdoc}
  18.      */
  19.     public function build(ContainerBuilder $container)
  20.     {
  21.         parent::build($container);
  22.         $container->addCompilerPass(new PaginatorConfigurationPass(), PassConfig::TYPE_BEFORE_REMOVING);
  23.         $container->addCompilerPass(new PaginatorAwarePass(), PassConfig::TYPE_BEFORE_REMOVING);
  24.     }
  25. }