/** * Start application using custom or default dispatcher. * * @param DispatcherInterface $dispatcher Custom dispatcher. */ public function start(DispatcherInterface $dispatcher = null) { $this->dispatcher = !empty($dispatcher) ? $dispatcher : $this->createDispatcher(); $this->dispatcher->start(); }
/** * Start application using custom or default dispatcher. * * @param DispatcherInterface $dispatcher Custom dispatcher. */ public function start(DispatcherInterface $dispatcher = null) { //todo move dispatcher creation into core initialization method $this->dispatcher = !empty($dispatcher) ? $dispatcher : $this->createDispatcher(); $this->dispatcher->start(); }