Skip to content

Commit

Permalink
Merge remote-tracking branch 'prezent/migrations-path' into PISYL-210
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasimovic3 committed Feb 27, 2024
2 parents 5542449 + 6dbd9e8 commit 4061bdb
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 4061bdb

Please sign in to comment.