Closed joke2k closed 4 years ago
Are you sure about your example? $this
is not used in your controller.
wrong copy&paste sorry. I edited with the right code.
OK I see what you mean, but this is expected behavior. With the PHP-DI bridge, dependencies are supposed to be passed via closure parameters.
I'm not sure if we should enable that behavior, if several people want this we may consider this.
The Invoker doesn't bind the container with route closure.
raises:
Uncaught Error: Using $this when not in object context