vendor/sylius/sylius/src/Sylius/Bundle/TaxationBundle/SyliusTaxationBundle.php line 21

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Bundle\TaxationBundle;
  12. use Sylius\Bundle\ResourceBundle\AbstractResourceBundle;
  13. use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
  14. use Sylius\Bundle\TaxationBundle\DependencyInjection\Compiler\RegisterCalculatorsPass;
  15. use Symfony\Component\DependencyInjection\ContainerBuilder;
  16. final class SyliusTaxationBundle extends AbstractResourceBundle
  17. {
  18.     public function getSupportedDrivers(): array
  19.     {
  20.         return [
  21.             SyliusResourceBundle::DRIVER_DOCTRINE_ORM,
  22.         ];
  23.     }
  24.     public function build(ContainerBuilder $container): void
  25.     {
  26.         parent::build($container);
  27.         $container->addCompilerPass(new RegisterCalculatorsPass());
  28.     }
  29.     /**
  30.      * @psalm-suppress MismatchingDocblockReturnType https://github.com/vimeo/psalm/issues/2345
  31.      */
  32.     protected function getModelNamespace(): string
  33.     {
  34.         return 'Sylius\Component\Taxation\Model';
  35.     }
  36. }