requestHandler = $requestHandler; } public function handle(ServerRequestInterface $request): ResponseInterface { $this->initializeContext(); $request = $request->withAttribute('applicationType', SystemEnvironmentBuilder::REQUESTTYPE_INSTALL); return parent::handle($request) ->withHeader('X-Frame-Options', 'SAMEORIGIN'); } /** * Initializes the Context used for accessing data and finding out the current state of the application */ protected function initializeContext(): void { $this->context->setAspect('date', new DateTimeAspect(DateTimeFactory::createFromTimestamp($GLOBALS['EXEC_TIME']))); $this->context->setAspect('visibility', new VisibilityAspect(true, true, true, true)); $this->context->setAspect('workspace', new WorkspaceAspect(0)); $this->context->setAspect('backend.user', new UserAspect()); } }