Beispiel #1
0
 /**
  * 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();
 }
Beispiel #2
0
 /**
  * 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();
 }