/** * @return PageNotFoundHandler */ public function __construct() { /** @var ObjectManager $objectManager */ $objectManager = GeneralUtility::makeInstance(ObjectManager::class); /** @var ConfigurationManager $configurationManager */ $configurationManager = $objectManager->get(ConfigurationManager::class); $this->pageRepository = $objectManager->get(PageRepository::class); TypoScriptFrontendUtility::initialize(); $configurationManager->setContentObject($objectManager->get(ContentObjectRenderer::class)); $this->uriBuilder = $objectManager->get(UriBuilder::class); $this->uriBuilder->injectConfigurationManager($configurationManager); $this->settings = $configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS, 'website'); }