ZF\Apigility\Admin\Controller\AuthenticationController::authenticationAction PHP Метод

authenticationAction() публичный Метод

    public function authenticationAction()
    {
        $request = $this->getRequest();
        $version = $this->getVersion($request);
        switch ($version) {
            case 1:
                return $this->authVersion1($request);
            case 2:
                return $this->authVersion2($request);
            default:
                return new ApiProblemResponse(new ApiProblem(406, 'The API version specified is not supported'));
        }
    }