Dispatcher
class Dispatcher extends Dispatcher
命令行应用调度器
Properties
ContainerInterface | $container | from Component | |
EventManagerInterface | $eventManager | from Component |
Methods
setCommandName($handlerName)
No description
getCommandName()
No description
Details
in Component at line 33
setContainer(ContainerInterface $container)
设置依赖注入容器
in Component at line 41
ContainerInterface
getContainer()
in Component at line 49
setEventManager(EventManagerInterface $eventManager)
设置事件管理器
in Component at line 57
EventManagerInterface
getEventManager()
in Component at line 77
mixed
trigger(string|EventInterface $event, mixed $data = null)
触发事件
$this->trigger('application.exception', $data); $event = new Event('application.boot', $data); $this->trigger($event);
in Component at line 88
ContainerInterface|mixed
__get(string $name)
获取容器本身,或者获取容器中的某个服务
in Dispatcher at line 30
__construct()
BaseDispatcher constructor.
in Dispatcher at line 38
dispatch()
执行调度
in Dispatcher at line 114
forward(array $forward)
无需 redirect 跳转,而直接调用对应的 Handler->Action