• Fabien Potencier's avatar
    bug #1534 RedirectableUrlMatcher needs to return a proper array with the _route parameter (slipo) · 268e3d33
    Fabien Potencier authored
    This PR was merged into the 2.1.x-dev branch.
    
    Discussion
    ----------
    
    RedirectableUrlMatcher needs to return a proper array with the _route parameter
    
    Symfony's HttpUtils's checkRequestPath() expects RedirectableUrlMatcher to return an array with '_route'. This throws a notice `Undefined index: _route`:
    
    ```
            $coll = new RouteCollection();
            $coll->add('foo', new Route('/foo', array(), array(), array(), '', array('https')));
            $matcher = new RedirectableUrlMatcher($coll, new RequestContext());
            $httpUtils = new HttpUtils(null, $matcher);
            $request = Request::create('http://example.com/foo');
            $httpUtils->checkRequestPath($request, 'foo');
    ```
    
    It's an issue with my app although I haven't yet taken the time to make a simplified app to show the issue besides the above.
    
    Commits
    -------
    
    e6d41b8d RedirectableUrlMatcher needs to return a proper array with the _route parameter
    268e3d33
Name
Last commit
Last update
doc Loading commit data...
src/Silex Loading commit data...
tests/Silex/Tests Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE Loading commit data...
README.rst Loading commit data...
composer.json Loading commit data...
phpunit.xml.dist Loading commit data...