mirror of
https://github.com/symfony/recipes.git
synced 2026-09-16 17:46:27 +03:00
added the new @required annotation support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user