title: Symfony 2 default action for controller with ability to send response
body: <p>I listen to the kernel.controller action to implement a default (or init) action foo my controllers:</p>
  
  <pre><code>public function onKernelController(FilterControllerEvent $event)
  {
      $controller = $event-&gt;getController();
  
      if (!is_array($controller)) {
          return;
      }
  
      $currentController = $controller[0];
      if($controller[0] instanceof Initmethod){
          $ret = $currentController-&gt;init($event-&gt;getRequest());
          if($ret !== null &amp;&amp; $ret instanceof Response){
              $ret-&gt;send();
              exit();
          }
      }
  
      $event-&gt;setController($controller);
  }
  </code></pre>
  
  <p>As you can see, i want to give my init action the ability to return a response which should be send instead of the one of the called action. After that no other action should be executed.</p>
  
  <p>My question is, is the way i'm doing it the right one? Because a don't want to "fight the framework" and ending the execution by calling exit doesn't seems do be right.</p>