fabpot/Silex — pull request #707 by luisgonzalez (2013-05-16 23:22:18+00:00)
Title: add '_route' key to RedirectableUrlMatcher::redirect

When there is a logger, the Symfony\Compoment\HttpKernel\EventListener\RouterListener class expects the '_route' key to exist in order to log the matched route and issues a PHP Notice

register(new \Silex\Provider\MonologServiceProvider());
$app->get('/a/', function() {
return 'done';
});

$app->run();

*[url]/a* issues the notice before redirecting to */a/*