mirror of
https://github.com/symfony/recipes.git
synced 2026-09-21 20:16:37 +03:00
removed hack for Doctrine annotations
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user