Skip to content

Commit 4eef7b0

Browse files
authored
Merge pull request #1051 from pawel-lewtak/patch-1
Fix code sample in custom integrations docs page
2 parents a04b141 + 922c368 commit 4eef7b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/en/reference/custom-integration.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Now place the following code in the ``migrations`` file:
2121
2222
use Doctrine\DBAL\DriverManager;
2323
use Doctrine\Migrations\DependencyFactory;
24-
use Doctrine\Migrations\Configuration\Configuration\PhpFile;
24+
use Doctrine\Migrations\Configuration\Migration\PhpFile;
2525
use Doctrine\Migrations\Configuration\Connection\ExistingConnection;
2626
use Doctrine\Migrations\Tools\Console\Command;
2727
use Symfony\Component\Console\Application;
@@ -38,7 +38,7 @@ Now place the following code in the ``migrations`` file:
3838
3939
$config = new PhpFile('migrations.php'); // Or use one of the Doctrine\Migrations\Configuration\Configuration\* loaders
4040
41-
$dependencyFactory = DependencyFactory::fromConnection($config, new ExistingConnection($conn));
41+
$dependencyFactory = DependencyFactory::fromConnection($config, new ExistingConnection($connection));
4242
4343
$cli = new Application('Doctrine Migrations');
4444
$cli->setCatchExceptions(true);

0 commit comments

Comments
 (0)