/** * Initializes the kernel globals and DI container. */ public function init() { $this->invokeBeforeContainerCreatedHook(); $this->container = $this->createContainer(); StaticContainer::push($this->container); $this->validateEnvironment(); $this->invokeEnvironmentBootstrappedHook(); Piwik::postEvent('Environment.bootstrapped'); // this event should be removed eventually }