RouteAttributeInterface
in
Table of Contents
Methods
- after() : ResponseInterface|null
- Process the attribute after the controller is executed.
- before() : RequestInterface|ResponseInterface|null
- Process the attribute before the controller is executed.
Methods
after()
Process the attribute after the controller is executed.
public
after(RequestInterface $request, ResponseInterface $response) : ResponseInterface|null
Parameters
- $request : RequestInterface
- $response : ResponseInterface
Return values
ResponseInterface|null —Return ResponseInterface to replace the response Return null to use the existing response
before()
Process the attribute before the controller is executed.
public
before(RequestInterface $request) : RequestInterface|ResponseInterface|null
Parameters
- $request : RequestInterface
Return values
RequestInterface|ResponseInterface|null —Return RequestInterface to replace the request Return ResponseInterface to short-circuit and send response Return null to continue normal execution