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