diff --git a/src/DependencyInjection/SyliusMollieExtension.php b/src/DependencyInjection/SyliusMollieExtension.php index cbbcb349..1938b7ce 100644 --- a/src/DependencyInjection/SyliusMollieExtension.php +++ b/src/DependencyInjection/SyliusMollieExtension.php @@ -29,10 +29,11 @@ public function prepend(ContainerBuilder $container): void return; } + $doctrineConfig = $container->getExtensionConfig('doctrine_migrations'); $container->prependExtensionConfig('doctrine_migrations', [ - 'migrations_paths' => [ + 'migrations_paths' => \array_merge(\array_pop($doctrineConfig)['migrations_paths'] ?? [], [ 'SyliusMolliePlugin\Migrations' => __DIR__ . '/../Migrations', - ], + ]), ]); $container->prependExtensionConfig('sylius_labs_doctrine_migrations_extra', [