PHP Class ZF\Apigility\Module

显示文件 Open project: zfcampus/zf-apigility

Public Methods

Method Description
getConfig ( ) : array Retrieve module configuration
onBootstrap ( MvcEvent $e ) : void Listen to application bootstrap event.
onRender ( MvcEvent $e ) : void Attach the ApiProblem render.error listener if a JSON response is detected.

Method Details

getConfig() public method

Retrieve module configuration
public getConfig ( ) : array
return array

onBootstrap() public method

- Attaches UnauthenticatedListener to authentication.post event. - Attaches UnauthorizedListener to authorization.post event. - Attaches module render listener to render event.
public onBootstrap ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
return void

onRender() public method

Attach the ApiProblem render.error listener if a JSON response is detected.
public onRender ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
return void