PHP 클래스 Zend\Mvc\Controller\ControllerManager

Does not define any controllers by default, but does add a validator.
상속: extends Zend\ServiceManager\AbstractPluginManager
파일 보기 프로젝트 열기: zendframework/zend-mvc 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$autoAddInvokableClass boolean We do not want arbitrary classes instantiated as controllers.
$instanceOf string Controllers must be of this type.

공개 메소드들

메소드 설명
__construct ( $configOrContainerInstance, array $v3config = [] ) Constructor
injectEventManager ( Interop\Container\ContainerInterface | Zend\Stdlib\DispatchableInterface $first, Zend\Stdlib\DispatchableInterface | Interop\Container\ContainerInterface $second ) Initializer: inject EventManager instance
injectPluginManager ( Interop\Container\ContainerInterface | Zend\Stdlib\DispatchableInterface $first, Zend\Stdlib\DispatchableInterface | Interop\Container\ContainerInterface $second ) Initializer: inject plugin manager
validate ( $plugin ) Validate a plugin (v3)
validatePlugin ( $plugin ) Validate a plugin (v2)

메소드 상세

__construct() 공개 메소드

Injects an initializer for injecting controllers with an event manager and plugin manager.
public __construct ( $configOrContainerInstance, array $v3config = [] )
$v3config array

injectEventManager() 공개 메소드

If we have an event manager composed already, make sure it gets injected with the shared event manager. The AbstractController lazy-instantiates an EM instance, which is why the shared EM injection needs to happen; the conditional will always pass.
public injectEventManager ( Interop\Container\ContainerInterface | Zend\Stdlib\DispatchableInterface $first, Zend\Stdlib\DispatchableInterface | Interop\Container\ContainerInterface $second )
$first Interop\Container\ContainerInterface | Zend\Stdlib\DispatchableInterface Container when using zend-servicemanager v3; controller under v2.
$second Zend\Stdlib\DispatchableInterface | Interop\Container\ContainerInterface Controller when using zend-servicemanager v3; container under v2.

injectPluginManager() 공개 메소드

Initializer: inject plugin manager
public injectPluginManager ( Interop\Container\ContainerInterface | Zend\Stdlib\DispatchableInterface $first, Zend\Stdlib\DispatchableInterface | Interop\Container\ContainerInterface $second )
$first Interop\Container\ContainerInterface | Zend\Stdlib\DispatchableInterface Container when using zend-servicemanager v3; controller under v2.
$second Zend\Stdlib\DispatchableInterface | Interop\Container\ContainerInterface Controller when using zend-servicemanager v3; container under v2.

validate() 공개 메소드

{@inheritDoc}
public validate ( $plugin )

validatePlugin() 공개 메소드

{@inheritDoc}
public validatePlugin ( $plugin )

프로퍼티 상세

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

We do not want arbitrary classes instantiated as controllers.
protected bool $autoAddInvokableClass
리턴 boolean

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

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