Commit fe12191a authored by Fabien Potencier's avatar Fabien Potencier

added support for the url generator and url matcher in the security HttpUtils class

parent 1fcdbef8
...@@ -274,7 +274,7 @@ class SecurityServiceProvider implements ServiceProviderInterface ...@@ -274,7 +274,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
}); });
$app['security.http_utils'] = $app->share(function () use ($app) { $app['security.http_utils'] = $app->share(function () use ($app) {
return new HttpUtils(); return new HttpUtils(isset($app['url_generator']) ? $app['url_generator'] : null, $app['url_matcher']);
}); });
$app['security.last_error'] = $app->protect(function (Request $request) { $app['security.last_error'] = $app->protect(function (Request $request) {
......
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