vendor/shopware/platform/src/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.     /**
  11.      * @var string
  12.      */
  13.     protected $name 'System';
  14.     /**
  15.      * {@inheritdoc}
  16.      */
  17.     public function build(ContainerBuilder $container): void
  18.     {
  19.         parent::build($container);
  20.         $loader = new XmlFileLoader($container, new FileLocator(__DIR__ '/DependencyInjection/'));
  21.         $loader->load('sales_channel.xml');
  22.         $loader->load('country.xml');
  23.         $loader->load('currency.xml');
  24.         $loader->load('locale.xml');
  25.         $loader->load('snippet.xml');
  26.         $loader->load('salutation.xml');
  27.         $loader->load('tax.xml');
  28.         $loader->load('unit.xml');
  29.         $loader->load('user.xml');
  30.         $loader->load('integration.xml');
  31.         $loader->load('state_machine.xml');
  32.         $loader->load('configuration.xml');
  33.         $loader->load('number_range.xml');
  34.         $loader->load('tag.xml');
  35.         $container->addCompilerPass(new SalesChannelEntityCompilerPass());
  36.     }
  37. }