removed hack for Doctrine annotations

This commit is contained in:
Fabien Potencier
2017-03-15 09:58:01 -07:00
parent 9b8e228df4
commit cd5e8139e1
2 changed files with 2 additions and 14 deletions
@@ -4,14 +4,8 @@ use App\Kernel;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Debug\Debug;
use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;
$loader = require __DIR__.'/../vendor/autoload.php';
if (class_exists(AnnotationRegistry::class)) {
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
AnnotationReader::addGlobalIgnoredName('required');
}
require __DIR__.'/../vendor/autoload.php';
// The check is to ensure we don't use .env in production
if (!getenv('APP_ENV')) {