示例#1
0
 /**
  * Boot Zikula.
  *
  * @throws LogicException If already booted.
  *
  * @return void
  */
 public function boot()
 {
     if ($this->booted) {
         throw new LogicException('Already booted.');
     }
     $this->bootime = microtime(true);
     $this->serviceManager = new Zikula_ServiceManager('zikula.servicemanager');
     $this->eventManager = $this->serviceManager->attachService('zikula.eventmanager', new Zikula_EventManager($this->serviceManager));
     $this->serviceManager->attachService('zikula', $this);
     $this->attachHandlers($this->handlerDir);
 }