vendor/coreshop/core-shop/src/CoreShop/Bundle/CurrencyBundle/CoreShopCurrencyBundle.php line 26

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\CurrencyBundle;
  17. use CoreShop\Bundle\CurrencyBundle\DependencyInjection\Compiler\CompositeCurrencyContextPass;
  18. use CoreShop\Bundle\ResourceBundle\AbstractResourceBundle;
  19. use CoreShop\Bundle\ResourceBundle\CoreShopResourceBundle;
  20. use Symfony\Component\DependencyInjection\ContainerBuilder;
  21. final class CoreShopCurrencyBundle extends AbstractResourceBundle
  22. {
  23.     public function getSupportedDrivers(): array
  24.     {
  25.         return [
  26.             CoreShopResourceBundle::DRIVER_DOCTRINE_ORM,
  27.         ];
  28.     }
  29.     public function build(ContainerBuilder $container): void
  30.     {
  31.         parent::build($container);
  32.         $container->addCompilerPass(new CompositeCurrencyContextPass());
  33.     }
  34.     protected function getModelNamespace(): string
  35.     {
  36.         return 'CoreShop\Component\Currency\Model';
  37.     }
  38. }