custom/plugins/SwagMigrationMagento/src/SwagMigrationMagento.php line 15

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. /*
  3.  * (c) shopware AG <info@shopware.com>
  4.  * For the full copyright and license information, please view the LICENSE
  5.  * file that was distributed with this source code.
  6.  */
  7. namespace Swag\MigrationMagento;
  8. use Shopware\Core\Framework\Plugin;
  9. use Symfony\Component\Config\FileLocator;
  10. use Symfony\Component\DependencyInjection\ContainerBuilder;
  11. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  12. class SwagMigrationMagento extends Plugin
  13. {
  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('magento.xml');
  22.         $loader->load('magento19.xml');
  23.         $loader->load('magento20.xml');
  24.         $loader->load('magento21.xml');
  25.         $loader->load('magento22.xml');
  26.         $loader->load('magento23.xml');
  27.     }
  28.     public function rebuildContainer(): bool
  29.     {
  30.         return false;
  31.     }
  32. }