vendor/knplabs/knp-paginator-bundle/src/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\DependencyInjection\Compiler\PassConfig;
  12. use Symfony\Component\DependencyInjection\ContainerBuilder;
  13. use Symfony\Component\HttpKernel\Bundle\Bundle;
  14. final class KnpPaginatorBundle extends Bundle
  15. {
  16. public function build(ContainerBuilder $container): void
  17. {
  18. parent::build($container);
  19. $container->addCompilerPass(new PaginatorConfigurationPass(), PassConfig::TYPE_BEFORE_REMOVING);
  20. $container->addCompilerPass(new PaginatorAwarePass(), PassConfig::TYPE_BEFORE_REMOVING);
  21. }
  22. public function getPath(): string
  23. {
  24. return \dirname(__DIR__);
  25. }
  26. }