• Fabien Potencier's avatar
    merged branch luisgonzalez/1.0 (PR #707) · 51622a78
    Fabien Potencier authored
    This PR was merged into the 1.0 branch.
    
    Discussion
    ----------
    
    add '_route' key to RedirectableUrlMatcher::redirect
    
    When there is a logger, the Symfony\Compoment\HttpKernel\EventListener\RouterListener::onKernelRequest method expects the '_route' key to exist in order to log the matched route and issues a PHP Notice
    
        <?php
        date_default_timezone_set('America/Los_Angeles');
    
        require_once __DIR__ . '/../vendor/autoload.php';
        Symfony\Component\HttpKernel\Debug\ErrorHandler::register();
        $app = new Silex\Application();
        $app['debug'] = true;
        $app['monolog.logfile'] = 'C:/TEMP/log.log';
        $app->register(new \Silex\Provider\MonologServiceProvider());
        $app->get('/a/', function() {
            return 'done';
        });
    
        $app->run();
    
    *[url]/a* issues the notice before redirecting to */a/*
    
    Commits
    -------
    
    3d1a868c add '_route' key to RedirectableUrlMatcher::redirect
    51622a78
Name
Last commit
Last update
bin Loading commit data...
doc Loading commit data...
src/Silex Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...