Closed pfazzi closed 4 years ago
i think You can try to use custom strategy. You need to set container on strategy by calling method 'setContainer'.
for more help please check here https://route.thephpleague.com/4.x/dependency-injection/.
Duplicate of #263
In a PSR-11 compliant Container i may define services using IDs instead of the FQCN. This is usefull when a class has multiple instances in the container. Let's consider the following definition:
Where
GenericCreateController
is an invokable class.If I define the following route:
it won't work. ATM I have to define it as:
It would be nice to simply use the class alias without the need to specify the
__invoke
method.