src/Auth/Abstracts/AbstractAuthController.php
protected function configureEndpoint(EndpointInterface $Endpoint, $action)
    {
        switch ($action) {
            case self::ACTION_AUTH:
                $Endpoint = $this->configureAuthenticationEndpoint($Endpoint);
                break;
            case self::ACTION_LOGOUT:
                $Endpoint = $this->configureLogoutEndpoint($Endpoint);
                break;
        }
        return $Endpoint;
    }
protected function configureEndpoint(EndpointInterface $Endpoint, $action)
    {
        switch ($action) {
            case self::ACTION_AUTH:
                $Endpoint = $this->configureAuthenticationEndpoint($Endpoint);
                break;
            case self::ACTION_LOGOUT:
                $Endpoint = $this->configureLogoutEndpoint($Endpoint);
                break;
        }
        return $Endpoint;
    }
protected function configureEndpoint ( EndpointInterface $ Endpoint , $ action ) { switch ( $ action ) { case self :: ACTION_AUTH : $ Endpoint = $ this -> configureAuthenticationEndpoint ( $ Endpoint ) ; break ; case self :: ACTION_LOGOUT : $ Endpoint = $ this -> configureLogoutEndpoint ( $ Endpoint ) ; break ; } return $ Endpoint ; }
Configure an actions Endpoint Object
@param EndpointInterface $Endpoint
@param string $action
@return EndpointInterface
Configure an actions Endpoint Object