Commit dc7572ef authored by Henrik Bjornskov's avatar Henrik Bjornskov Committed by Haralan Dobrev

allow using a service name for the users config in firewall

parent eb559d4c
...@@ -229,6 +229,10 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener ...@@ -229,6 +229,10 @@ class SecurityServiceProvider implements ServiceProviderInterface, EventListener
$protected = false === $security ? false : count($firewall); $protected = false === $security ? false : count($firewall);
$listeners = ['security.channel_listener']; $listeners = ['security.channel_listener'];
if (is_string($users)) {
$users = $app->raw($users);
}
if ($protected) { if ($protected) {
if (!isset($app['security.context_listener.'.$name])) { if (!isset($app['security.context_listener.'.$name])) {
if (!isset($app['security.user_provider.'.$name])) { if (!isset($app['security.user_provider.'.$name])) {
......
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