Skip to content

Commit

Permalink
Merge pull request #1051 from pawel-lewtak/patch-1
Browse files Browse the repository at this point in the history
Fix code sample in custom integrations docs page
  • Loading branch information
goetas authored Aug 29, 2020
2 parents a04b141 + 922c368 commit 4eef7b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/en/reference/custom-integration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Now place the following code in the ``migrations`` file:
use Doctrine\DBAL\DriverManager;
use Doctrine\Migrations\DependencyFactory;
use Doctrine\Migrations\Configuration\Configuration\PhpFile;
use Doctrine\Migrations\Configuration\Migration\PhpFile;
use Doctrine\Migrations\Configuration\Connection\ExistingConnection;
use Doctrine\Migrations\Tools\Console\Command;
use Symfony\Component\Console\Application;
Expand All @@ -38,7 +38,7 @@ Now place the following code in the ``migrations`` file:
$config = new PhpFile('migrations.php'); // Or use one of the Doctrine\Migrations\Configuration\Configuration\* loaders
$dependencyFactory = DependencyFactory::fromConnection($config, new ExistingConnection($conn));
$dependencyFactory = DependencyFactory::fromConnection($config, new ExistingConnection($connection));
$cli = new Application('Doctrine Migrations');
$cli->setCatchExceptions(true);
Expand Down

0 comments on commit 4eef7b0

Please sign in to comment.