/** * @throws InvalidEventListenerCollection * @throws InvalidDomainNamespace * @throws InvalidRequestInfoImplementation * @throws InvalidUriResolverImplementation * @throws InvalidUriRewriterImplementation */ public function init() { $this->delegate->setUpErrorHandling(); $this->delegate->setUpSessionHandling(); $this->guardConfigIsValid(); $initializedEvent = new IceHawkWasInitializedEvent(); $this->publishEvent($initializedEvent); }
/** * @throws InvalidEventListenerCollection * @throws InvalidDomainNamespace * @throws InvalidRequestInfoImplementation * @throws InvalidUriResolverImplementation * @throws InvalidUriRewriterImplementation */ public function init() { $this->delegate->setUpErrorHandling(); $this->delegate->setUpSessionHandling(); $this->delegate->setUpEnvironment(); $this->config = new IceHawkConfigWrapper($this->config); $this->guardConfigIsValid(); $requestInfo = $this->config->getRequestInfo(); $initializedEvent = new IceHawkWasInitializedEvent($requestInfo); $this->publishEvent($initializedEvent); }