original_string: public function onAuthenticationSuccessResponse(AuthenticationSuccessEvent $event)
      {
          $data = $event->getData();
          $data['user'] = $event->getUser()->getUsername();
  
          $event->setData($data);
      }
code: public function onAuthenticationSuccessResponse(AuthenticationSuccessEvent $event)
      {
          $data = $event->getData();
          $data['user'] = $event->getUser()->getUsername();
  
          $event->setData($data);
      }
code_tokens: public function onAuthenticationSuccessResponse ( AuthenticationSuccessEvent $ event ) { $ data = $ event -> getData ( ) ; $ data [ 'user' ] = $ event -> getUser ( ) -> getUsername ( ) ; $ event -> setData ( $ data ) ; }
docstring: Add public data to the authentication response.
  
  @param AuthenticationSuccessEvent $event
docstring_tokens: Add public data to the authentication response .