Skip to content

Commit 33004b4

Browse files
committed
Merge remote-tracking branch 'origin/3.0.x' into 3.1.x
2 parents 7f3597c + 81c4468 commit 33004b4

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

DependencyInjection/CompilerPass/ConfigureDependencyFactoryPass.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class ConfigureDependencyFactoryPass implements CompilerPassInterface
1818
public function process(ContainerBuilder $container): void
1919
{
2020
$diDefinition = $container->getDefinition('doctrine.migrations.dependency_factory');
21-
22-
$preferredEm = $container->getParameter('doctrine.migrations.preferred_em');
21+
$preferredEm = $container->getParameter('doctrine.migrations.preferred_em');
2322
if ($container->has('doctrine')) {
2423
$loaderDefinition = $container->getDefinition('doctrine.migrations.registry_loader');
2524
$loaderDefinition->setArgument(0, new Reference('doctrine'));

DependencyInjection/DoctrineMigrationsExtension.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ private function checkIfBundleRelativePath(string $path, ContainerBuilder $conta
142142
private function getBundlePath(string $bundleName, ContainerBuilder $container): string
143143
{
144144
$bundleMetadata = $container->getParameter('kernel.bundles_metadata');
145-
146145
assert(is_array($bundleMetadata));
147146

148147
if (! isset($bundleMetadata[$bundleName])) {

Resources/doc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ application:
4545
doctrine_migrations:
4646
# List of namespace/path pairs to search for migrations, at least one required
4747
migrations_paths:
48-
'App\Migrations': 'src/App'
48+
'App\Migrations': '%kernel.project_dir%/src/App'
4949
'AnotherApp\Migrations': '/path/to/other/migrations'
5050
'SomeBundle\Migrations': '@SomeBundle/Migrations'
5151

0 commit comments

Comments
 (0)