src/PaymentBundle/SolidInvoicePaymentBundle.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\PaymentBundle;
  12. use SolidInvoice\PaymentBundle\DependencyInjection\CompilerPass\PayumStoragePass;
  13. use SolidInvoice\PaymentBundle\DependencyInjection\PaymentExtension;
  14. use Symfony\Component\DependencyInjection\ContainerBuilder;
  15. use Symfony\Component\HttpKernel\Bundle\Bundle;
  16. final class SolidInvoicePaymentBundle extends Bundle
  17. {
  18.     final public const NAMESPACE = __NAMESPACE__;
  19.     public function build(ContainerBuilder $container): void
  20.     {
  21.         $container->addCompilerPass(new PayumStoragePass());
  22.         $container->registerExtension(new PaymentExtension());
  23.     }
  24. }