diff --git a/UPGRADE.md b/UPGRADE.md index 95c71ff57a..c0a32aaab4 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,5 +1,15 @@ # Upgrade to 3.0 +## BC Break: Removed the `doctrine` binary. + +The documentation explains how the console tools can be bootstrapped for +standalone usage: + +https://www.doctrine-project.org/projects/doctrine-orm/en/stable/reference/tools.html + +The method `ConsoleRunner::printCliConfigTemplate()` has been removed as well +because it was only useful in the context of the `doctrine` binary. + ## BC Break: Removed `EntityManagerHelper` and related logic All console commands require a `$entityManagerProvider` to be passed via the diff --git a/bin/doctrine b/bin/doctrine deleted file mode 100755 index 83d3804292..0000000000 --- a/bin/doctrine +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env php -register(); - -$classLoader = new \Doctrine\Common\ClassLoader('Symfony'); -$classLoader->register(); - -$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; - -$helperSet = null; -if (file_exists($configFile)) { - if ( ! is_readable($configFile)) { - trigger_error( - 'Configuration file [' . $configFile . '] does not have read permission.', E_USER_ERROR - ); - } - - require $configFile; - - foreach ($GLOBALS as $helperSetCandidate) { - if ($helperSetCandidate instanceof \Symfony\Component\Console\Helper\HelperSet) { - $helperSet = $helperSetCandidate; - break; - } - } -} - -$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet(); - -\Doctrine\ORM\Tools\Console\ConsoleRunner::run($helperSet); diff --git a/bin/doctrine.bat b/bin/doctrine.bat deleted file mode 100644 index a91645cc45..0000000000 --- a/bin/doctrine.bat +++ /dev/null @@ -1,9 +0,0 @@ -@echo off - -if "%PHPBIN%" == "" set PHPBIN=@php_bin@ -if not exist "%PHPBIN%" if "%PHP_PEAR_PHP_BIN%" neq "" goto USE_PEAR_PATH -GOTO RUN -:USE_PEAR_PATH -set PHPBIN=%PHP_PEAR_PHP_BIN% -:RUN -"%PHPBIN%" "@bin_dir@\doctrine" %* diff --git a/bin/doctrine.php b/bin/doctrine.php deleted file mode 100644 index 2c11fd208d..0000000000 --- a/bin/doctrine.php +++ /dev/null @@ -1,62 +0,0 @@ -