fabpot/Silex — pull request #405 by igorw (2012-06-30 22:14:17+00:00)
Title: Re-bind closures to the application object on PHP 5.4

This allows using $app as $this in controllers and before/after handlers:

$app->get(/, function () {
return $this->redirect(/foo);
});

Works for:

* closure controllers
* before/after filters
* error handlers
* finish handlers

I'd like to get some early feedback on this idea. What do you think?

TODO:

* Docs
* Debug crazy WTF swiftmailer test failure
* Add functionality to pimple services