Skip to content

Commit

Permalink
Don't put the migrations path on the top of the config, so it won't o…
Browse files Browse the repository at this point in the history
…verwrite the applications default path
  • Loading branch information
Robert-Jan Bijl committed Nov 28, 2023
1 parent a3ad196 commit 6dbd9e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DependencyInjection/SyliusMollieExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', [
Expand Down

0 comments on commit 6dbd9e8

Please sign in to comment.