vendor/shopware/administration/Administration.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Administration;
  3. use Shopware\Core\Framework\Bundle;
  4. use Shopware\Core\Framework\Migration\MigrationSource;
  5. use Symfony\Component\Config\FileLocator;
  6. use Symfony\Component\DependencyInjection\ContainerBuilder;
  7. use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
  8. class Administration extends Bundle
  9. {
  10.     public function build(ContainerBuilder $container): void
  11.     {
  12.         parent::build($container);
  13.         $loader = new XmlFileLoader($container, new FileLocator(__DIR__ '/DependencyInjection/'));
  14.         $loader->load('services.xml');
  15.         // configure migration directories
  16.         $migrationSourceV4 $container->getDefinition(MigrationSource::class . '.core.V6_4');
  17.         $migrationSourceV4->addMethodCall('addDirectory', [$this->getMigrationPath() . '/V6_4'$this->getMigrationNamespace() . '\V6_4']);
  18.         // we've moved the migrations from Shopware\Core\Migration to Shopware\Core\Migration\v6_4
  19.         $migrationSourceV4->addMethodCall('addReplacementPattern', ['#^(Shopware\\\\Administration\\\\Migration\\\\)V6_4\\\\([^\\\\]*)$#''$1$2']);
  20.     }
  21. }