8000 minor #18608 [micro_kernel] Fix deleted feature AnnotationRegistry::r… · symfony/symfony-docs@2415e00 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2415e00

Browse files
committed
minor #18608 [micro_kernel] Fix deleted feature AnnotationRegistry::registerLoader (IssamRaouf)
This PR was merged into the 5.4 branch. Discussion ---------- [micro_kernel] Fix deleted feature AnnotationRegistry::registerLoader [Dropping AnnotationRegistry completely, relying on native autoloading instead](doctrine/annotations#205) v2.0.0 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 9168b9d [micro_kernel] Fix deleted method AnnotationRegistry::registerLoader
2 parents e24bcae + 9168b9d commit 2415e00

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

configuration/micro_kernel_trait.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,9 @@ Finally, you need a front controller to boot and run the application. Create a
328328

329329
// public/index.php
330330
use App\Kernel;
331-
use Doctrine\Common\Annotations\AnnotationRegistry;
332331
use Symfony\Component\HttpFoundation\Request;
333332

334-
$loader = require __DIR__.'/../vendor/autoload.php';
335-
// auto-load annotations
336-
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
333+
require __DIR__.'/../vendor/autoload.php';
337334

338335
$kernel = new Kernel('dev', true);
339336
$request = Request::createFromGlobals();

0 commit comments

Comments
 (0)
0