Commit 6f539e08 authored by Fabien Potencier's avatar Fabien Potencier

fixed CS

parent 284533e6
...@@ -217,19 +217,8 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener ...@@ -217,19 +217,8 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener
$context = isset($firewall['context']) ? $firewall['context'] : $name; $context = isset($firewall['context']) ? $firewall['context'] : $name;
$hosts = isset($firewall['hosts']) ? $firewall['hosts'] : null; $hosts = isset($firewall['hosts']) ? $firewall['hosts'] : null;
$methods = isset($firewall['methods']) ? $firewall['methods'] : null; $methods = isset($firewall['methods']) ? $firewall['methods'] : null;
unset($firewall['pattern'], $firewall['users'], $firewall['security'], $firewall['stateless'], $firewall['context'], $firewall['methods'], $firewall['hosts']);
unset(
$firewall['pattern'],
$firewall['users'],
$firewall['security'],
$firewall['stateless'],
$firewall['context'],
$firewall['methods'],
$firewall['hosts']
);
$protected = false === $security ? false : count($firewall); $protected = false === $security ? false : count($firewall);
$listeners = array('security.channel_listener'); $listeners = array('security.channel_listener');
if ($protected) { if ($protected) {
...@@ -322,11 +311,7 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener ...@@ -322,11 +311,7 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener
$map = new FirewallMap(); $map = new FirewallMap();
foreach ($configs as $name => $config) { foreach ($configs as $name => $config) {
if (is_string($config['pattern'])) { if (is_string($config['pattern'])) {
$requestMatcher = new RequestMatcher( $requestMatcher = new RequestMatcher($config['pattern'], $config['hosts'], $config['methods']);
$config['pattern'],
$config['hosts'],
$config['methods']
);
} else { } else {
$requestMatcher = $config['pattern']; $requestMatcher = $config['pattern'];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment