From 70fe21b30a6623685c924fc778b5522f62ae1b65 Mon Sep 17 00:00:00 2001 From: Jefersson Nathan Date: Wed, 23 Jul 2014 17:09:47 -0300 Subject: [PATCH] Remove the error control operator --- bin/doctrine.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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');