Skip to content

MicroKernelTrait error #13865

@Surfoo

Description

@Surfoo

Hello,

I followed the first example A Single-File Symfony Application, just here: https://symfony.com/doc/current/configuration/micro_kernel_trait.html

And it doesn't work, here the log from Symfony CLI:

[Web Server/PHP ] Jun 19 00:05:02 |DEBUG| PHP    127.0.0.1:50258 Accepted path="/usr/bin/php" php="7.4.6"
[Web Server/PHP ] Jun 19 00:05:02 |ERROR| PHP    Uncaught PHP Exception TypeError: "Argument 1 passed to Kernel::configureRoutes() must be an instance of Symfony\Bundle\FrameworkBundle\Routing\Loader\Configurator\RoutingConfigurator, instance of Symfony\Component\Routing\RouteCollectionBuilder given, called in [***]/vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php on line 171" at [***]/index.php line 33 
[Web Server/PHP ] Jun 19 00:05:02 |DEBUG| PHP     
[Web Server/PHP ] Jun 19 00:05:02 |DEBUG| PHP    127.0.0.1:50258 Closing 
[Web Server/PHP ] Jun 19 00:05:02 |ERROR| SERVER GET  (500) /random/10 ip="::1"

Can you confirm this bug by reproducing it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions