title: Symfony 2.8 - Controller listener, get controller after redirect
body: <p>I'm currently try to implement a controller listener which needs to be executed before every action:</p>
  
  <pre><code>class AuthenticationListener 
  {
  /**
   * @var TokenStorage
   */
  private $tokenStorage;
  
  /**
   * @var $controller
   *
   * Controller that is accessed
   */
  private $controller;
  
  /**
   * @var string $class full class path of controller
   */
  private $class;
  
  public function __construct(TokenStorage $tokenStorage)
  {
      $this-&gt;tokenStorage = $tokenStorage;
  }
  
  public function onKernelController(FilterControllerEvent $event)
  {
      // Get controller after redirect here?
      $this-&gt;controller = $event-&gt;getController()[0];
      $this-&gt;class = get_class($this-&gt;controller);
  }
  
  }
  </code></pre>
  
  <p>However, when there is a redirect this listener receives the RedirectController instead of the controller that is targeted by the user. Is there anyway to get the name of controller which comes after the redirect? </p>