From a5ffbdc8d421159d2d2bbba2192003668551951d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewtak?= Date: Fri, 28 Aug 2020 15:31:02 +0200 Subject: [PATCH 1/2] Fix namespace for loading PhpFile class in docs --- docs/en/reference/custom-integration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/custom-integration.rst b/docs/en/reference/custom-integration.rst index 367c3a16e4..0cbc5f3b34 100644 --- a/docs/en/reference/custom-integration.rst +++ b/docs/en/reference/custom-integration.rst @@ -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; From 922c3687b778bc2ea46176c94008aea93f1b0bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Lewtak?= Date: Fri, 28 Aug 2020 15:33:17 +0200 Subject: [PATCH 2/2] Fix variable name in docs --- docs/en/reference/custom-integration.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/reference/custom-integration.rst b/docs/en/reference/custom-integration.rst index 0cbc5f3b34..85510d7c9d 100644 --- a/docs/en/reference/custom-integration.rst +++ b/docs/en/reference/custom-integration.rst @@ -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);