|
|
f6c2d16 |
diff -up ./lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php.rpm2 ./lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php
|
|
|
69a184e |
--- ./lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php.rpm2 2022-01-12 16:22:59.316791685 +0100
|
|
|
69a184e |
+++ ./lib/Doctrine/ORM/Tools/Console/ConsoleRunner.php 2022-01-12 16:24:06.823498397 +0100
|
|
|
69a184e |
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
|
|
69a184e |
|
|
|
69a184e |
namespace Doctrine\ORM\Tools\Console;
|
|
|
69a184e |
|
|
|
69a184e |
-use Composer\InstalledVersions;
|
|
|
69a184e |
use Doctrine\DBAL\Tools\Console as DBALConsole;
|
|
|
69a184e |
use Doctrine\ORM\EntityManagerInterface;
|
|
|
69a184e |
use Doctrine\ORM\Tools\Console\EntityManagerProvider\ConnectionFromManagerProvider;
|
|
|
69a184e |
@@ -60,7 +59,7 @@ final class ConsoleRunner
|
|
|
ea8b064 |
*/
|
|
|
f6c2d16 |
public static function createApplication($helperSetOrProvider, array $commands = []): Application
|
|
|
ea8b064 |
{
|
|
|
69a184e |
- $version = InstalledVersions::getVersion('doctrine/orm');
|
|
|
69a184e |
+ $version = '@VERSION@';
|
|
|
69a184e |
assert($version !== null);
|
|
|
ea8b064 |
|
|
|
69a184e |
$cli = new Application('Doctrine Command Line Interface', $version);
|
|
|
f6c2d16 |
diff -up ./tests/Doctrine/Tests/ORM/Tools/Console/ConsoleRunnerTest.php.rpm2 ./tests/Doctrine/Tests/ORM/Tools/Console/ConsoleRunnerTest.php
|
|
|
69a184e |
--- ./tests/Doctrine/Tests/ORM/Tools/Console/ConsoleRunnerTest.php.rpm2 2022-01-12 16:22:59.316791685 +0100
|
|
|
69a184e |
+++ ./tests/Doctrine/Tests/ORM/Tools/Console/ConsoleRunnerTest.php 2022-01-12 16:24:37.684281754 +0100
|
|
|
69a184e |
@@ -4,7 +4,6 @@ declare(strict_types=1);
|
|
|
69a184e |
|
|
|
69a184e |
namespace Doctrine\Tests\ORM\Tools\Console;
|
|
|
69a184e |
|
|
|
69a184e |
-use Composer\InstalledVersions;
|
|
|
69a184e |
use Doctrine\Deprecations\PHPUnit\VerifyDeprecations;
|
|
|
ea8b064 |
use Doctrine\ORM\Tools\Console\ConsoleRunner;
|
|
|
f6c2d16 |
use Doctrine\ORM\Tools\Console\EntityManagerProvider;
|
|
|
f6c2d16 |
@@ -28,7 +27,7 @@ final class ConsoleRunnerTest extends Do
|
|
|
ea8b064 |
$app = ConsoleRunner::createApplication($helperSet);
|
|
|
ea8b064 |
|
|
|
ea8b064 |
self::assertSame($helperSet, $app->getHelperSet());
|
|
|
69a184e |
- self::assertSame(InstalledVersions::getVersion('doctrine/orm'), $app->getVersion());
|
|
|
ea8b064 |
+ self::assertSame('@VERSION@', $app->getVersion());
|
|
|
ea8b064 |
|
|
|
ea8b064 |
self::assertTrue($app->has('dbal:reserved-words'));
|
|
|
e08339f |
self::assertTrue($app->has('dbal:run-sql'));
|