diff --git a/bin/doctrine.php b/bin/doctrine.php index c73556284..438003245 100755 --- a/bin/doctrine.php +++ b/bin/doctrine.php @@ -20,7 +20,14 @@ use Symfony\Component\Console\Helper\HelperSet; use Doctrine\ORM\Tools\Console\ConsoleRunner; -(@include_once __DIR__ . '/../vendor/autoload.php') || @include_once __DIR__ . '/../../../autoload.php'; +$autoloadFiles = array(__DIR__ . '/../vendor/autoload.php', + __DIR__ . '/../vendor/autoload.php'); + +foreach ($autoloadFiles as $autoloadFile) { + if (file_exists($autoloadFile)) { + require_once $autoloadFile; + } +} $directories = array(getcwd(), getcwd() . DIRECTORY_SEPARATOR . 'config');