Example #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->container = $this->kernel->getContainer();
     $this->container->setAlias('zikula.servicemanager', 'service_container');
     $this->dispatcher = $this->getContainer()->get('event_dispatcher');
     $this->container->setAlias('zikula.eventmanager', 'event_dispatcher');
     $this->container->set('zikula', $this);
     $this->attachHandlers($this->handlerDir);
 }