summaryrefslogtreecommitdiffstats
path: root/php-doctrine-migrations-rpm.patch
blob: a653ef007c33fc89c929e85bece38bb0bf871f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff -up ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php.rpm ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php
--- ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php.rpm	2021-01-05 10:51:45.000000000 +0100
+++ ./lib/Doctrine/Migrations/Tools/Console/ConsoleRunner.php	2021-01-28 11:15:35.294828232 +0100
@@ -15,7 +15,6 @@ use Doctrine\Migrations\Tools\Console\Co
 use Doctrine\Migrations\Tools\Console\Command\StatusCommand;
 use Doctrine\Migrations\Tools\Console\Command\UpToDateCommand;
 use Doctrine\Migrations\Tools\Console\Command\VersionCommand;
-use PackageVersions\Versions;
 use Symfony\Component\Console\Application;
 use Symfony\Component\Console\Helper\HelperSet;
 
@@ -38,7 +37,7 @@ class ConsoleRunner
     /** @param AbstractCommand[] $commands */
     public static function createApplication(HelperSet $helperSet, array $commands = []): Application
     {
-        $cli = new Application('Doctrine Migrations', Versions::getVersion('doctrine/migrations'));
+        $cli = new Application('Doctrine Migrations', '@VERSION@');
         $cli->setCatchExceptions(true);
         $cli->setHelperSet($helperSet);
         self::addCommands($cli);
diff -up ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php.rpm ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php
--- ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php.rpm	2021-01-05 10:51:45.000000000 +0100
+++ ./tests/Doctrine/Migrations/Tests/Functional/CliTest.php	2021-01-28 11:14:17.336197063 +0100
@@ -18,7 +18,6 @@ use Doctrine\Migrations\Tools\Console\Co
 use Doctrine\ORM\EntityManager;
 use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;
 use Doctrine\ORM\Tools\Setup as OrmSetup;
-use PackageVersions\Versions;
 use ReflectionClass;
 use RuntimeException;
 use Symfony\Component\Console\Application;
@@ -284,7 +283,7 @@ class CliTest extends MigrationTestCase
         $this->deleteMigrationFiles();
 
         $this->conn        = $this->getSqliteConnection();
-        $this->application = new Application('Doctrine Migrations Test', Versions::getVersion('doctrine/migrations'));
+        $this->application = new Application('Doctrine Migrations Test', '@VERSION@');
         $this->application->setCatchExceptions(false);
         $this->application->setAutoExit(false);
         $this->application->getHelperSet()->set(