Unused method, property, variable or parameter 11
More information: https://insight.sensiolabs.com/what-we-analyse/php.unused_local_variable_or_private_member
- $app['assets.named_packages'] = array();
- // prototypes
- $app['assets.strategy_factory'] = $app->protect(function ($version, $format, $jsonManifestPath, $name) use ($app) {
- if ($version && $jsonManifestPath) {
- throw new \LogicException(sprintf('Asset package "%s" cannot have version and manifest.', $name));
- }
- if ($version) {
- );
- };
- });
- $app['security.user_provider.inmemory._proto'] = $app->protect(function ($params) use ($app) {
- return function () use ($app, $params) {
- $users = array();
- foreach ($params as $name => $user) {
- $users[$name] = array('roles' => (array) $user[0], 'password' => $user[1]);
- }
- return $handler;
- };
- });
- $app['security.authentication.failure_handler._proto'] = $app->protect(function ($name, $options) use ($app) {
- return function () use ($name, $options, $app) {
- return new DefaultAuthenticationFailureHandler(
- $app,
- $app['security.http_utils'],
- $options,
- $app['logger']
- );
- };
- });
- $app['security.authentication_listener.guard._proto'] = $app->protect(function ($providerKey, $options) use ($app, $that) {
- return function () use ($app, $providerKey, $options, $that) {
- if (!isset($app['security.authentication.guard_handler'])) {
- $app['security.authentication.guard_handler'] = new GuardAuthenticatorHandler($app['security.token_storage'], $app['dispatcher']);
- }
- $authenticators = array();
- );
- };
- });
- $app['security.authentication_listener.http._proto'] = $app->protect(function ($providerKey, $options) use ($app) {
- return function () use ($app, $providerKey, $options) {
- return new BasicAuthenticationListener(
- $app['security.token_storage'],
- $app['security.authentication_manager'],
- $providerKey,
- $app['security.entry_point.'.$providerKey.'.http'],
- );
- };
- });
- $app['security.authentication_listener.anonymous._proto'] = $app->protect(function ($providerKey, $options) use ($app) {
- return function () use ($app, $providerKey, $options) {
- return new AnonymousAuthenticationListener(
- $app['security.token_storage'],
- $providerKey,
- $app['logger']
- );
- );
- };
- });
- $app['security.authentication.logout_handler._proto'] = $app->protect(function ($name, $options) use ($app) {
- return function () use ($name, $options, $app) {
- return new DefaultLogoutSuccessHandler(
- $app['security.http_utils'],
- isset($options['target_url']) ? $options['target_url'] : '/'
- );
- };
- return $listener;
- };
- });
- $app['security.authentication_listener.switch_user._proto'] = $app->protect(function ($name, $options) use ($app, $that) {
- return function () use ($app, $name, $options, $that) {
- return new SwitchUserListener(
- $app['security.token_storage'],
- $app['security.user_provider.'.$name],
- $app['security.user_checker'],
- $name,
- return new FormAuthenticationEntryPoint($app, $app['security.http_utils'], $loginPath, $useForward);
- };
- });
- $app['security.entry_point.http._proto'] = $app->protect(function ($name, array $options) use ($app) {
- return function () use ($app, $name, $options) {
- return new BasicAuthenticationEntryPoint(isset($options['real_name']) ? $options['real_name'] : 'Secured');
- };
- });
- $app['security.entry_point.guard._proto'] = $app->protect(function ($name, array $options) use ($app) {
- return new FormAuthenticationEntryPoint($app, $app['security.http_utils'], $loginPath, $useForward);
- };
- });
- $app['security.entry_point.http._proto'] = $app->protect(function ($name, array $options) use ($app) {
- return function () use ($app, $name, $options) {
- return new BasicAuthenticationEntryPoint(isset($options['real_name']) ? $options['real_name'] : 'Secured');
- };
- });
- $app['security.entry_point.guard._proto'] = $app->protect(function ($name, array $options) use ($app) {
- );
- };
- });
- $app['security.authentication_provider.anonymous._proto'] = $app->protect(function ($name, $options) use ($app) {
- return function () use ($app, $name) {
- return new AnonymousAuthenticationProvider($name);
- };
- });
- if (isset($app['validator'])) {