Skip to content

Commit 9168b9d

Browse files
authored
[micro_kernel] Fix deleted method AnnotationRegistry::registerLoader
[Dropping AnnotationRegistry completely, relying on native autoloading instead](doctrine/annotations#205)
1 parent dba6794 commit 9168b9d

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)