• Fabien Potencier's avatar
    feature #1310 Allow use of all the RequestMatcher parameters by providing an array (quazardous) · a8cc0ae4
    Fabien Potencier authored
    This PR was squashed before being merged into the 2.0.x-dev branch (closes #1310).
    
    Discussion
    ----------
    
    Allow use of all the RequestMatcher parameters by providing an array
    
    Provider: Silex\Provider\SecurityServiceProvider
    Little patch to make full use of the `RequestMatcher` in `$app['security.access_rules']`
    
    ```php
        $app['security.access_rules'] = [
            [[
                'host' => 'symfony.com',
                'ips' => '192.168.0.1',
                ...
             ], 'ROLE_ADMIN'],
            ...
        ];
    ```
    
    Commits
    -------
    
    9698b776 Allow use of all the RequestMatcher parameters by providing an array
    a8cc0ae4
Name
Last commit
Last update
bin Loading commit data...
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...