Re:Closure Object Binding in PHP 5.4
by yuri41 on Thursday October 27, 2011 @03:04AM
(#3161934)
The Point is, that I want my closures to have access to the context (the application) without messing with the arguments or "use".
The next thing is, that the Silex Framework binds route parameters as arguments to the closure.
Additionally the user could forget to declare the $app argument in the passed closure.
The next thing is, that the Silex Framework binds route parameters as arguments to the closure. Additionally the user could forget to declare the $app argument in the passed closure.