PHP Class Zend\Mvc\View\Http\InjectRoutematchParamsListener

Inheritance: implements Zend\EventManager\ListenerAggregateInterface
Show file Open project: zendframework/zend-mvc

Protected Properties

Property Type Description
$overwrite boolean Should request params overwrite existing request params?

Public Methods

Method Description
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) {@inheritDoc}
getOverwrite ( ) : boolean
injectParams ( MvcEvent $e ) : void Take parameters from RouteMatch and inject them into the request.
setOverwrite ( boolean $overwrite ) Should RouteMatch parameters replace existing Request params?

Method Details

attach() public method

{@inheritDoc}
public attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 )
$events Zend\EventManager\EventManagerInterface

getOverwrite() public method

public getOverwrite ( ) : boolean
return boolean

injectParams() public method

Take parameters from RouteMatch and inject them into the request.
public injectParams ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent
return void

setOverwrite() public method

Should RouteMatch parameters replace existing Request params?
public setOverwrite ( boolean $overwrite )
$overwrite boolean

Property Details

$overwrite protected property

Should request params overwrite existing request params?
protected bool $overwrite
return boolean