title: symfony2: Overriding DefaultAuthenticationSuccessHandler throws exception: "Authentication Success Handler did not return a Response."
body: <p>My custom success handler has the following method:</p>
  
  <pre><code>function onAuthenticationSuccess(Request $request, TokenInterface $token)
  {
      // Do nothing for now
  }
  </code></pre>
  
  <p>In my <em>security.yml</em> the <code>form_login</code> section contains:</p>
  
  <pre><code>...
  default_target_path: bundle_app_homepage
  always_use_default_target_path: true
  success_handler: security.authentication.success_handler
  </code></pre>
  
  <p>If I remove the <code>success_handler</code> parameter, it redirects automatically to <code>bundle_app_homepage</code> as expected. </p>
  
  <p>Now with my custom handler in place I get:</p>
  
  <blockquote>
    <p>Authentication Success Handler did not return a Response.</p>
  </blockquote>
  
  <p>Even if I add <code>return null;</code> to the handler I get the same error. It seems pointless that I need to add a redirect to the handler if it's defined in security.yml, which is the only other option I can think of.</p>
  
  <p>How can I resolve this issue?</p>