Commit d1fcf09c authored by Fabien Potencier's avatar Fabien Potencier

fixed CS

parent a508fde2
...@@ -28,11 +28,11 @@ class RememberMeServiceProvider implements ServiceProviderInterface ...@@ -28,11 +28,11 @@ class RememberMeServiceProvider implements ServiceProviderInterface
{ {
public function register(Application $app) public function register(Application $app)
{ {
$app['security.remember_me.response_listener'] = $app->share(function() { $app['security.remember_me.response_listener'] = $app->share(function () {
return new ResponseListener(); return new ResponseListener();
}); });
$app['security.authentication_listener.factory.remember_me'] = $app->protect(function($name, $options) use ($app) { $app['security.authentication_listener.factory.remember_me'] = $app->protect(function ($name, $options) use ($app) {
if (empty($options['key'])) { if (empty($options['key'])) {
$options['key'] = $name; $options['key'] = $name;
} }
...@@ -57,7 +57,7 @@ class RememberMeServiceProvider implements ServiceProviderInterface ...@@ -57,7 +57,7 @@ class RememberMeServiceProvider implements ServiceProviderInterface
); );
}); });
$app['security.remember_me.service._proto'] = $app->protect(function($providerKey, $options) use ($app) { $app['security.remember_me.service._proto'] = $app->protect(function ($providerKey, $options) use ($app) {
return $app->share(function () use ($providerKey, $options, $app) { return $app->share(function () use ($providerKey, $options, $app) {
$options = array_replace(array( $options = array_replace(array(
'name' => 'REMEMBERME', 'name' => 'REMEMBERME',
......
...@@ -131,7 +131,7 @@ class SecurityServiceProvider implements ServiceProviderInterface ...@@ -131,7 +131,7 @@ class SecurityServiceProvider implements ServiceProviderInterface
$entryPoint = 'form'; $entryPoint = 'form';
} }
$app['security.authentication_listener.factory.'.$type] = $app->protect(function($name, $options) use ($type, $app, $entryPoint) { $app['security.authentication_listener.factory.'.$type] = $app->protect(function ($name, $options) use ($type, $app, $entryPoint) {
if ($entryPoint && !isset($app['security.entry_point.'.$name.'.'.$entryPoint])) { if ($entryPoint && !isset($app['security.entry_point.'.$name.'.'.$entryPoint])) {
$app['security.entry_point.'.$name.'.'.$entryPoint] = $app['security.entry_point.'.$entryPoint.'._proto']($name, $options); $app['security.entry_point.'.$name.'.'.$entryPoint] = $app['security.entry_point.'.$entryPoint.'._proto']($name, $options);
} }
......
...@@ -62,7 +62,7 @@ class SessionServiceProvider implements ServiceProviderInterface ...@@ -62,7 +62,7 @@ class SessionServiceProvider implements ServiceProviderInterface
); );
}); });
$app['session.storage.test'] = $app->share(function() { $app['session.storage.test'] = $app->share(function () {
return new MockFileSessionStorage(); return new MockFileSessionStorage();
}); });
......
...@@ -47,7 +47,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface ...@@ -47,7 +47,7 @@ class ValidatorServiceProvider implements ServiceProviderInterface
return new ClassMetadataFactory(new StaticMethodLoader()); return new ClassMetadataFactory(new StaticMethodLoader());
}); });
$app['validator.validator_factory'] = $app->share(function() use ($app) { $app['validator.validator_factory'] = $app->share(function () use ($app) {
$validators = isset($app['validator.validator_service_ids']) ? $app['validator.validator_service_ids'] : array(); $validators = isset($app['validator.validator_service_ids']) ? $app['validator.validator_service_ids'] : array();
return new ConstraintValidatorFactory($app, $validators); return new ConstraintValidatorFactory($app, $validators);
......
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