vendor/paymentsuite/paymentsuite/src/PaymentSuite/FreePaymentBundle/FreePaymentBundle.php line 28

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the PaymentSuite package.
  4.  *
  5.  * Copyright (c) 2013-2016 Marc Morera
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  *
  10.  * Feel free to edit as you please, and have fun.
  11.  *
  12.  * @author Marc Morera <yuhu@mmoreram.com>
  13.  */
  14. namespace PaymentSuite\FreePaymentBundle;
  15. use Mmoreram\SymfonyBundleDependencies\DependentBundleInterface;
  16. use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
  17. use Symfony\Component\HttpKernel\Bundle\Bundle;
  18. use Symfony\Component\HttpKernel\KernelInterface;
  19. use PaymentSuite\FreePaymentBundle\DependencyInjection\FreePaymentExtension;
  20. /**
  21.  * Free payment bundle.
  22.  */
  23. class FreePaymentBundle extends Bundle implements DependentBundleInterface
  24. {
  25.     /**
  26.      * Returns the bundle's container extension.
  27.      *
  28.      * @return ExtensionInterface The container extension
  29.      */
  30.     public function getContainerExtension()
  31.     {
  32.         return new FreePaymentExtension();
  33.     }
  34.     /**
  35.      * Return all bundle dependencies.
  36.      *
  37.      * Values can be a simple bundle namespace or its instance
  38.      *
  39.      * @return array Bundle instances
  40.      */
  41.     public static function getBundleDependencies(KernelInterface $kernel): array
  42.     {
  43.         return [
  44.             'PaymentSuite\PaymentCoreBundle\PaymentCoreBundle',
  45.         ];
  46.     }
  47. }