vendor/coreshop/core-shop/src/CoreShop/Bundle/PayumPaymentBundle/CoreShopPayumPaymentBundle.php line 32

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\PayumPaymentBundle;
  17. use CoreShop\Bundle\PaymentBundle\CoreShopPaymentBundle;
  18. use CoreShop\Bundle\PayumPaymentBundle\DependencyInjection\Compiler\RegisterGatewayConfigTypePass;
  19. use CoreShop\Bundle\PayumPaymentBundle\DependencyInjection\Compiler\RegisterPaymentSettingsFormsPass;
  20. use CoreShop\Bundle\ResourceBundle\AbstractResourceBundle;
  21. use CoreShop\Bundle\ResourceBundle\ComposerPackageBundleInterface;
  22. use CoreShop\Bundle\ResourceBundle\CoreShopResourceBundle;
  23. use Pimcore\Extension\Bundle\Installer\InstallerInterface;
  24. use Pimcore\Extension\Bundle\PimcoreBundleInterface;
  25. use Pimcore\HttpKernel\BundleCollection\BundleCollection;
  26. use Symfony\Component\DependencyInjection\ContainerBuilder;
  27. class CoreShopPayumPaymentBundle extends AbstractResourceBundle implements PimcoreBundleInterfaceComposerPackageBundleInterface
  28. {
  29.     public function getSupportedDrivers(): array
  30.     {
  31.         return [
  32.             CoreShopResourceBundle::DRIVER_DOCTRINE_ORM,
  33.         ];
  34.     }
  35.     public static function registerDependentBundles(BundleCollection $collection): void
  36.     {
  37.         parent::registerDependentBundles($collection);
  38.         $collection->addBundle(new CoreShopPaymentBundle(), 2200);
  39.     }
  40.     public function build(ContainerBuilder $container): void
  41.     {
  42.         parent::build($container);
  43.         $container->addCompilerPass(new RegisterGatewayConfigTypePass());
  44.         $container->addCompilerPass(new RegisterPaymentSettingsFormsPass());
  45.     }
  46.     protected function getModelNamespace(): string
  47.     {
  48.         return 'CoreShop\Component\PayumPayment\Model';
  49.     }
  50.     public function getPackageName(): string
  51.     {
  52.         return 'coreshop/payum-payment-bundle';
  53.     }
  54.     public function getNiceName(): string
  55.     {
  56.         return 'CoreShop - Payum Payment';
  57.     }
  58.     public function getDescription(): string
  59.     {
  60.         return 'CoreShop - Payum Payment Bundle';
  61.     }
  62.     public function getInstaller(): ?InstallerInterface
  63.     {
  64.         return null;
  65.     }
  66.     public function getAdminIframePath(): ?string
  67.     {
  68.         return null;
  69.     }
  70.     public function getJsPaths(): array
  71.     {
  72.         return [];
  73.     }
  74.     public function getCssPaths(): array
  75.     {
  76.         return [];
  77.     }
  78.     public function getEditmodeJsPaths(): array
  79.     {
  80.         return [];
  81.     }
  82.     public function getEditmodeCssPaths(): array
  83.     {
  84.         return [];
  85.     }
  86. }