PHP 인터페이스 Webiny\Component\Rest\Interfaces\MiddlewareInterface

Everything is still handled by the component, except a call to the actual service, so this gives you an extra layer of control over how a service method will be executed. Whatever you return from getResult method will be passed directly to Rest component as a service call result.
파일 보기 프로젝트 열기: Webiny/Framework 0 사용 예제들

공개 메소드들

메소드 설명
getResult ( RequestBag $requestBag ) : mixed This method will be called if Middleware key is defined in Rest config.

메소드 상세

getResult() 공개 메소드

This method will be called if Middleware key is defined in Rest config.
public getResult ( RequestBag $requestBag ) : mixed
$requestBag Webiny\Component\Rest\Response\RequestBag Request data from Rest component
리턴 mixed