Skip to content

MicroKernel documentation #13827

Closed
Closed
@knallcharge

Description

@knallcharge

Symfony version(s) affected: 4.4.0+

Description
The documentation about "Building your own Framework with the MicroKernelTrait" has an error in the import-function for loading annotations:
https://symfony.com/doc/4.4/configuration/micro_kernel_trait.html#advanced-example-twig-annotations-and-the-web-debug-toolbar

How to reproduce
use the import-function as stated in the documentation: $routes->import(DIR.'/../src/Controller/', '/', 'annotation');

Possible Solution
use the import-function as given: $routes->import(DIR.'/../src/Controller/', 'annotation');
see https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Routing/Loader/Configurator/RoutingConfigurator.php
The second parameter is $type, so "annotation" should be given here, not "/".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions