Commit 9d082c62 authored by Haralan Dobrev's avatar Haralan Dobrev Committed by Fabien Potencier

Use the constant to refer to session auth strategy

It is always better to refer to a constant with its name rather
than its value.
parent 3286da8c
...@@ -323,7 +323,7 @@ class SecurityServiceProvider implements ServiceProviderInterface ...@@ -323,7 +323,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
}); });
$app['security.session_strategy'] = $app->share(function ($app) { $app['security.session_strategy'] = $app->share(function ($app) {
return new SessionAuthenticationStrategy('migrate'); return new SessionAuthenticationStrategy(SessionAuthenticationStrategy::MIGRATE);
}); });
$app['security.http_utils'] = $app->share(function ($app) { $app['security.http_utils'] = $app->share(function ($app) {
......
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