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

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\DependencyInjection\Extension\ExtensionInterface;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. /**
  17. * DataTablesBundle.
  18. *
  19. * @author Niels Keurentjes <niels.keurentjes@omines.com>
  20. */
  21. class DataTablesBundle extends Bundle
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public function build(ContainerBuilder $container)
  27. {
  28. parent::build($container);
  29. $container->addCompilerPass(new LocatorRegistrationPass());
  30. }
  31. /**
  32. * {@inheritdoc}
  33. */
  34. public function getContainerExtension(): ?ExtensionInterface
  35. {
  36. return new DataTablesExtension();
  37. }
  38. }