You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following the "Create Framework" tutorial, specifically the section on "The DependencyInjection Component." I encountered an issue with the following line of code:
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.
The text was updated successfully, but these errors were encountered:
I am following the "Create Framework" tutorial, specifically the section on "The DependencyInjection Component." I encountered an issue with the following line of code:
This line attempts to set a RouterCollection as a parameter, which results in an error:
In my understanding as such this method of using routes in the DI container is not possible.
The text was updated successfully, but these errors were encountered: