platform/src/Core/DevOps/DevOps.php line 10

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\DevOps;
  3. use Shopware\Core\Framework\Bundle;
  4. use Symfony\Component\Config\FileLocator;
  5. use Symfony\Component\DependencyInjection\ContainerBuilder;
  6. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  7. class DevOps extends Bundle
  8. {
  9.     /**
  10.      * {@inheritdoc}
  11.      */
  12.     public function build(ContainerBuilder $container): void
  13.     {
  14.         parent::build($container);
  15.         $loader = new XmlFileLoader($container, new FileLocator(__DIR__ '/DependencyInjection'));
  16.         $loader->load('services.xml');
  17.         $environment $container->getParameter('kernel.environment');
  18.         if ($environment === 'e2e') {
  19.             $loader->load('services_e2e.xml');
  20.         }
  21.     }
  22. }