Open
Description
I am following the "Create Framework" tutorial, specifically the section on "The DependencyInjection Component." I encountered an issue with the following line of code:
$container->setParameter('routes', include __DIR__.'/../src/app.php');
This line attempts to set a RouterCollection as a parameter, which results in an error:
PHP Fatal error: Uncaught TypeError: Symfony\Component\DependencyInjection\Container::setParameter(): Argument #2 ($value) must be of type UnitEnum|array|string|int|float|bool|null, Symfony\Component\Routing\RouteCollection given, called in /web/front.php
In my understanding as such this method of using routes in the DI container is not possible.