public function authenticate(Request $request)
    {
        $form = $this->app->form(new PhraseaAuthenticationForm($this->app));
        $redirector = function (array $params = []) {
            return $this->app->redirectPath('homepage', $params);
        };

        try {
            return $this->doAuthentication($request, $form, $redirector);
        } catch (AuthenticationException $e) {
            return $e->getResponse();
        }
    }
public function authenticate(Request $request)
    {
        $form = $this->app->form(new PhraseaAuthenticationForm($this->app));
        $redirector = function (array $params = []) {
            return $this->app->redirectPath('homepage', $params);
        };

        try {
            return $this->doAuthentication($request, $form, $redirector);
        } catch (AuthenticationException $e) {
            return $e->getResponse();
        }
    }
public function authenticate ( Request $ request ) { $ form = $ this -> app -> form ( new PhraseaAuthenticationForm ( $ this -> app ) ) ; $ redirector = function ( array $ params = [ ] ) { return $ this -> app -> redirectPath ( 'homepage' , $ params ) ; } ; try { return $ this -> doAuthentication ( $ request , $ form , $ redirector ) ; } catch ( AuthenticationException $ e ) { return $ e -> getResponse ( ) ; } }
Authenticate to phraseanet

@param  Request $request The current request
@return RedirectResponse
Authenticate to phraseanet