added the new @required annotation support

This commit is contained in:
Fabien Potencier
2017-03-01 13:02:56 -08:00
parent 9bcbe70179
commit 9fc344dbef
2 changed files with 4 additions and 0 deletions
@@ -3,11 +3,13 @@
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');
}
// The check is to ensure we don't use .env in production