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

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\Content;
  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 Content 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('category.xml');
  17.         $loader->load('media.xml');
  18.         $loader->load('product.xml');
  19.         $loader->load('newsletter_recipient.xml');
  20.         $loader->load('rule.xml');
  21.         $loader->load('product_stream.xml');
  22.         $loader->load('product_export.xml');
  23.         $loader->load('property.xml');
  24.         $loader->load('cms.xml');
  25.         $loader->load('mail_template.xml');
  26.         $loader->load('delivery_time.xml');
  27.         $loader->load('import_export.xml');
  28.         $loader->load('contact_form.xml');
  29.         $loader->load('sitemap.xml');
  30.         $loader->load('landing_page.xml');
  31.         $loader->load('flow.xml');
  32.         if ($container->getParameter('kernel.environment') === 'test') {
  33.             $loader->load('services_test.xml');
  34.         }
  35.     }
  36. }