src/DataGridBundle/SolidInvoiceDataGridBundle.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * This file is part of SolidInvoice project.
  5.  *
  6.  * (c) Pierre du Plessis <open-source@solidworx.co>
  7.  *
  8.  * This source file is subject to the MIT license that is bundled
  9.  * with this source code in the file LICENSE.
  10.  */
  11. namespace SolidInvoice\DataGridBundle;
  12. use SolidInvoice\DataGridBundle\DependencyInjection\CompilerPass\GridDefinitionCompilerPass;
  13. use SolidInvoice\DataGridBundle\DependencyInjection\SolidInvoiceDataGridExtension;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. final class SolidInvoiceDataGridBundle extends Bundle
  17. {
  18.     final public const NAMESPACE = __NAMESPACE__;
  19.     public function build(ContainerBuilder $container): void
  20.     {
  21.         $container->addCompilerPass(new GridDefinitionCompilerPass());
  22.     }
  23.     public function getContainerExtension(): SolidInvoiceDataGridExtension
  24.     {
  25.         return new SolidInvoiceDataGridExtension();
  26.     }
  27. }