vendor/shopware/core/System/System.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System;
  3. use Shopware\Core\Framework\Bundle;
  4. use Shopware\Core\System\DependencyInjection\CompilerPass\SalesChannelEntityCompilerPass;
  5. use Symfony\Component\Config\FileLocator;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  8. class System extends Bundle
  9. {
  10.     protected $name 'System';
  11.     /**
  12.      * {@inheritdoc}
  13.      */
  14.     public function build(ContainerBuilder $container): void
  15.     {
  16.         parent::build($container);
  17.         $loader = new XmlFileLoader($container, new FileLocator(__DIR__ '/DependencyInjection/'));
  18.         $loader->load('sales_channel.xml');
  19.         $loader->load('country.xml');
  20.         $loader->load('currency.xml');
  21.         $loader->load('locale.xml');
  22.         $loader->load('snippet.xml');
  23.         $loader->load('salutation.xml');
  24.         $loader->load('tax.xml');
  25.         $loader->load('unit.xml');
  26.         $loader->load('user.xml');
  27.         $loader->load('integration.xml');
  28.         $loader->load('state_machine.xml');
  29.         $loader->load('configuration.xml');
  30.         $loader->load('number_range.xml');
  31.         $loader->load('tag.xml');
  32.         $container->addCompilerPass(new SalesChannelEntityCompilerPass());
  33.     }
  34. }