title: Symfony2 HWIOauthBundle error with response
body: <p>i hope anybody can answer my below question.</p>
  
  <p>I running a project with symgfony2. I will offer users to import their CV from external plattforms like Linkedin or XING.</p>
  
  <p>What i dont need is offering the user the ability to login to my site through linkedin or Xing.</p>
  
  <p>So i though i can use for this the HwioAuthBundle but i can not figure it out, how to do this!</p>
  
  <p>At the moment is it like this that i come to loginpage on linkedin but when i come back to my site then i get the error:</p>
  
  <p>"""</p>
  
  <pre><code>Controller "XXXXX\MyBundle\Controller\MyController::importProfileLinkedinAction()" requires that you provide a value for the "$response" argument (because there is no default value or because there is a non optional argument after this one). 
  </code></pre>
  
  <p>"""</p>
  
  <p>I do it as described in the documentation:</p>
  
  <h1>config.yml</h1>
  
  <pre><code>hwi_oauth:
    firewall_name: secured_area
    resource_owners:
        linkedin:
           type:          linkedin
           client_id:     XXXXXXXXXXXXXXXX
           client_secret: XXXXXXXXXXXXXXXX
           scope:         r_fullprofile
           infos_url:     "http://api.linkedin.com/v1/people/~:(id,formatted
                           name,recommendations-received)"          
  services:
     oauth_user_provider:
         class: HWI\Bundle\OAuthBundle\Security\Core\User\OAuthUserProvider
  </code></pre>
  
  <h1>security.yml</h1>
  
  <pre><code>        secured_area:
          oauth:
              resource_owners:
                linkedin:             /login/linkedin
              login_path:        /secured/login
              failure_path:      /secured/login
  
              oauth_user_provider:
                  oauth: ~
  </code></pre>
  
  <h1>routing.yml</h1>
  
  <pre><code>hwi_oauth_redirect:
    resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
    prefix:   /secured/connect
  
  linkedin:
    pattern:  /login/linkedin
    defaults:
      _controller: MYBundle:MyController:importProfileLinkedin
  </code></pre>
  
  <h1>MyController.php</h1>
  
  <pre><code>use \HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface;
  ...
      public function importProfileLinkedinAction(Request $request, UserResponseInterface $response)
  
  {
      $data = $response-&gt;getResponse(); /* this method should return all data that was sent from resource owner ???*/
      var_dump(
          $data
      );
      exit;
  }
  </code></pre>
  
  <p>Thanks</p>