vendor/omines/datatables-bundle/src/DataTablesBundle.php line 25

Open in your IDE?
  1. <?php
  2. /*
  3. * Symfony DataTables Bundle
  4. * (c) Omines Internetbureau B.V. - https://omines.nl/
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. declare(strict_types=1);
  10. namespace Omines\DataTablesBundle;
  11. use Omines\DataTablesBundle\DependencyInjection\Compiler\LocatorRegistrationPass;
  12. use Omines\DataTablesBundle\DependencyInjection\DataTablesExtension;
  13. use Symfony\Component\DependencyInjection\ContainerBuilder;
  14. use Symfony\Component\HttpKernel\Bundle\Bundle;
  15. /**
  16. * DataTablesBundle.
  17. *
  18. * @author Niels Keurentjes <niels.keurentjes@omines.com>
  19. */
  20. class DataTablesBundle extends Bundle
  21. {
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function build(ContainerBuilder $container)
  26. {
  27. parent::build($container);
  28. $container->addCompilerPass(new LocatorRegistrationPass());
  29. }
  30. /**
  31. * {@inheritdoc}
  32. */
  33. public function getContainerExtension()
  34. {
  35. return new DataTablesExtension();
  36. }
  37. }