Commit 244dbef7 authored by Fabien Potencier's avatar Fabien Potencier

minor #1104 Use the constant to refer to session auth strategy (hkdobrev)

This PR was submitted for the master branch but it was merged into the 1.3 branch instead (closes #1104).

Discussion
----------

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.

Commits
-------

9d082c62 Use the constant to refer to session auth strategy
parents 3286da8c 9d082c62
...@@ -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