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

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. use function Flag\next6050;
  8. class Content extends Bundle
  9. {
  10.     protected $name 'Content';
  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('category.xml');
  19.         $loader->load('media.xml');
  20.         $loader->load('product.xml');
  21.         $loader->load('newsletter_recipient.xml');
  22.         $loader->load('rule.xml');
  23.         $loader->load('product_stream.xml');
  24.         $loader->load('product_export.xml');
  25.         $loader->load('property.xml');
  26.         $loader->load('cms.xml');
  27.         $loader->load('mail_template.xml');
  28.         $loader->load('delivery_time.xml');
  29.         $loader->load('import_export.xml');
  30.         $loader->load('contact_form.xml');
  31.         $loader->load('sitemap.xml');
  32.         if (next6050()) {
  33.             $loader->load('google_shopping.xml');
  34.         }
  35.     }
  36. }