original_string: protected function registerContextListener(\Silex\Application $app)
      {
          $context_listener       = 'security.context_listener.'.$this->name;
          $app[$context_listener] = $app->share(function () use ($app) {
              return new ContextListener(
                  $app['security.token_storage'], $this->userProviders, $this->name, $app['logger'], $app['dispatcher']
              );
          });
          return $context_listener;
      }
code: protected function registerContextListener(\Silex\Application $app)
      {
          $context_listener       = 'security.context_listener.'.$this->name;
          $app[$context_listener] = $app->share(function () use ($app) {
              return new ContextListener(
                  $app['security.token_storage'], $this->userProviders, $this->name, $app['logger'], $app['dispatcher']
              );
          });
          return $context_listener;
      }
code_tokens: protected function registerContextListener ( \ Silex \ Application $ app ) { $ context_listener = 'security.context_listener.' . $ this -> name ; $ app [ $ context_listener ] = $ app -> share ( function ( ) use ( $ app ) { return new ContextListener ( $ app [ 'security.token_storage' ] , $ this -> userProviders , $ this -> name , $ app [ 'logger' ] , $ app [ 'dispatcher' ] ) ; } ) ; return $ context_listener ; }
docstring: Register Context Listener
  @param \Silex\Application $app
docstring_tokens: Register Context Listener