Commit 3fdfa4be authored by Fabien Potencier's avatar Fabien Potencier

emptied the boot() method of the remember me service provider

parent 27eb5267
......@@ -29,7 +29,11 @@ class RememberMeServiceProvider implements ServiceProviderInterface, EventListen
{
public function register(Application $app)
{
$app['security.remember_me.response_listener'] = $app->share(function () {
$app['security.remember_me.response_listener'] = $app->share(function ($app) {
if (!isset($app['security'])) {
throw new \LogicException('You must register the SecurityServiceProvider to use the RememberMeServiceProvider');
}
return new ResponseListener();
});
......@@ -102,8 +106,5 @@ class RememberMeServiceProvider implements ServiceProviderInterface, EventListen
public function boot(Application $app)
{
if (!isset($app['security'])) {
throw new \LogicException('You must register the SecurityServiceProvider to use the RememberMeServiceProvider');
}
}
}
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