PHP 클래스 Zend\Mvc\Controller\PluginManager

Registers a number of default plugins, and contains an initializer for injecting plugins with the current controller.
상속: extends Zend\ServiceManager\AbstractPluginManager
파일 보기 프로젝트 열기: zendframework/zend-mvc 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$aliases Default aliases
$controller Zend\Stdlib\DispatchableInterface
$factories Default factories
$instanceOf string Plugins must be of this type.

공개 메소드들

메소드 설명
get ( string $name, array $options = null ) : Zend\Stdlib\DispatchableInterface Retrieve a registered instance
getController ( ) : null | Zend\Stdlib\DispatchableInterface Retrieve controller instance
injectController ( object $plugin ) : void Inject a helper instance with the registered controller
setController ( Zend\Stdlib\DispatchableInterface $controller ) : PluginManager Set controller
validate ( $plugin ) Validate a plugin (v3)
validatePlugin ( $plugin ) Validate a plugin (v2)

메소드 상세

get() 공개 메소드

After the plugin is retrieved from the service locator, inject the controller in the plugin every time it is requested. This is required because a controller can use a plugin and another controller can be dispatched afterwards. If this second controller uses the same plugin as the first controller, the reference to the controller inside the plugin is lost.
public get ( string $name, array $options = null ) : Zend\Stdlib\DispatchableInterface
$name string
$options array
리턴 Zend\Stdlib\DispatchableInterface

getController() 공개 메소드

Retrieve controller instance
public getController ( ) : null | Zend\Stdlib\DispatchableInterface
리턴 null | Zend\Stdlib\DispatchableInterface

injectController() 공개 메소드

Inject a helper instance with the registered controller
public injectController ( object $plugin ) : void
$plugin object
리턴 void

setController() 공개 메소드

Set controller
public setController ( Zend\Stdlib\DispatchableInterface $controller ) : PluginManager
$controller Zend\Stdlib\DispatchableInterface
리턴 PluginManager

validate() 공개 메소드

{@inheritDoc}
public validate ( $plugin )

validatePlugin() 공개 메소드

{@inheritDoc}
public validatePlugin ( $plugin )

프로퍼티 상세

$aliases 보호되어 있는 프로퍼티

Default aliases
protected $aliases

$controller 보호되어 있는 프로퍼티

protected DispatchableInterface,Zend\Stdlib $controller
리턴 Zend\Stdlib\DispatchableInterface

$factories 보호되어 있는 프로퍼티

Default factories
protected $factories

$instanceOf 보호되어 있는 프로퍼티

Plugins must be of this type.
protected string $instanceOf
리턴 string