프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$controllerMap | array | Array of controller namespace -> template mappings | |
$preferRouteMatchController | boolean | Flag to force the use of the route match controller param |
메소드 | 설명 | |
---|---|---|
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) | {@inheritDoc} | |
injectTemplate ( |
Inject a template into the view model, if none present | |
isPreferRouteMatchController ( ) : boolean | ||
mapController ( string $controller ) : string | false | Maps controller to template if controller namespace is whitelisted or mapped | |
setControllerMap ( array $map ) : self | Set map of controller namespace -> template pairs | |
setPreferRouteMatchController ( boolean $preferRouteMatchController ) | Sets the flag to instruct the listener to prefer the route match controller param over the class name |
메소드 | 설명 | |
---|---|---|
deriveControllerClass ( string $controller ) : string | Determine the name of the controller | |
inflectName ( string $name ) : string | Inflect a name to a normalized value |
public attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) | ||
$events | Zend\EventManager\EventManagerInterface |
protected deriveControllerClass ( string $controller ) : string | ||
$controller | string | |
리턴 | string |
protected inflectName ( string $name ) : string | ||
$name | string | |
리턴 | string |
public injectTemplate ( |
||
$e | ||
리턴 | void |
public mapController ( string $controller ) : string | false | ||
$controller | string | controller FQCN |
리턴 | string | false | template name or false if controller was not matched |
public setControllerMap ( array $map ) : self | ||
$map | array | |
리턴 | self |
public setPreferRouteMatchController ( boolean $preferRouteMatchController ) | ||
$preferRouteMatchController | boolean |
protected array $controllerMap | ||
리턴 | array |
protected bool $preferRouteMatchController | ||
리턴 | boolean |