diff --git a/bin/doctrine.php b/bin/doctrine.php index 7de4bfcdf..81edf294f 100644 --- a/bin/doctrine.php +++ b/bin/doctrine.php @@ -17,13 +17,7 @@ * . */ -if (!@include __DIR__ . '/../../../autoload.php') { - die(<<<'EOT' -This command can only be run when Doctrine is installed through Composer. -EOT - ); -} - +(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php'; $configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php'; $helperSet = null;