PHP Class ZF\Apigility\Admin\Module

Show file Open project: zfcampus/zf-apigility-admin

Protected Properties

Property Type Description
$mvcEvent Zend\Mvc\MvcEvent
$sm Interop\Container\ContainerInterface
$urlHelper callable

Public Methods

Method Description
getConfig ( ) : array | Traversable Returns configuration to merge with application configuration
getDiagnostics ( ) : array | boolean Run diagnostics
init ( Zend\ModuleManager\ModuleManagerInterface $modules ) Initialize module.
onBootstrap ( MvcEvent $e ) Listen to the bootstrap event

Protected Methods

Method Description
disableOpCache ( ) Disable opcode caching

Method Details

disableOpCache() protected method

Disables opcode caching for opcode caches that allow doing so during runtime; the admin API will not work with opcode caching enabled.
protected disableOpCache ( )

getConfig() public method

Returns configuration to merge with application configuration
public getConfig ( ) : array | Traversable
return array | Traversable

getDiagnostics() public method

Run diagnostics
public getDiagnostics ( ) : array | boolean
return array | boolean

init() public method

If the admin UI module is not loaded yet, load it. Disable the opcache as well.
public init ( Zend\ModuleManager\ModuleManagerInterface $modules )
$modules Zend\ModuleManager\ModuleManagerInterface

onBootstrap() public method

Listen to the bootstrap event
public onBootstrap ( MvcEvent $e )
$e Zend\Mvc\MvcEvent

Property Details

$mvcEvent protected property

protected MvcEvent,Zend\Mvc $mvcEvent
return Zend\Mvc\MvcEvent

$sm protected property

protected ContainerInterface,Interop\Container $sm
return Interop\Container\ContainerInterface

$urlHelper protected property

protected callable $urlHelper
return callable