public function initialization() { $this->registerDB(); $this->container['dispatcher'] = function () { return new EventDispatcher(); }; $this->container->dispatcher->dispatch('module.core.beforeInitialization'); }