PHP Класс Zend\Mvc\Controller\ControllerManager

Does not define any controllers by default, but does add a validator.
Наследование: extends Zend\ServiceManager\AbstractPluginManager
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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