vendor/coreshop/core-shop/src/CoreShop/Bundle/PayumBundle/CoreShopPayumBundle.php line 30

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. /*
  4.  * CoreShop
  5.  *
  6.  * This source file is available under two different licenses:
  7.  *  - GNU General Public License version 3 (GPLv3)
  8.  *  - CoreShop Commercial License (CCL)
  9.  * Full copyright and license information is available in
  10.  * LICENSE.md which is distributed with this source code.
  11.  *
  12.  * @copyright  Copyright (c) CoreShop GmbH (https://www.coreshop.org)
  13.  * @license    https://www.coreshop.org/license     GPLv3 and CCL
  14.  *
  15.  */
  16. namespace CoreShop\Bundle\PayumBundle;
  17. use CoreShop\Bundle\OrderBundle\CoreShopOrderBundle;
  18. use CoreShop\Bundle\PayumBundle\DependencyInjection\Compiler\PayumReplyToSymfonyPass;
  19. use CoreShop\Bundle\PayumPaymentBundle\CoreShopPayumPaymentBundle;
  20. use CoreShop\Bundle\ResourceBundle\AbstractResourceBundle;
  21. use CoreShop\Bundle\ResourceBundle\CoreShopResourceBundle;
  22. use Payum\Bundle\PayumBundle\PayumBundle;
  23. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  24. use Symfony\Component\DependencyInjection\ContainerBuilder;
  25. final class CoreShopPayumBundle extends AbstractResourceBundle
  26. {
  27.     public function getSupportedDrivers(): array
  28.     {
  29.         return [
  30.             CoreShopResourceBundle::DRIVER_DOCTRINE_ORM,
  31.         ];
  32.     }
  33.     public function build(ContainerBuilder $container): void
  34.     {
  35.         parent::build($container);
  36.         $container->addCompilerPass(new PayumReplyToSymfonyPass());
  37.     }
  38.     public static function registerDependentBundles(BundleCollection $collection): void
  39.     {
  40.         parent::registerDependentBundles($collection);
  41.         $collection->addBundle(new CoreShopOrderBundle(), 3200);
  42.         $collection->addBundle(new CoreShopPayumPaymentBundle(), 2100);
  43.         $collection->addBundle(new PayumBundle(), 1300);
  44.     }
  45.     protected function getModelNamespace(): string
  46.     {
  47.         return 'CoreShop\Component\PayumPayment\Model';
  48.     }
  49. }