diff --git a/src/Service/AlgoliaPageCrawler.php b/src/Service/AlgoliaPageCrawler.php index d0468a6..dcb00a2 100644 --- a/src/Service/AlgoliaPageCrawler.php +++ b/src/Service/AlgoliaPageCrawler.php @@ -57,7 +57,8 @@ public function getMainContent(): string // they would be for the frontend Config::nest(); SSViewer::set_themes(SSViewer::config()->get('themes')); - + + Requirements::clear(); $controller = ModelAsController::controller_for($this->item); $page = ''; $output = ''; @@ -80,7 +81,7 @@ public function getMainContent(): string } catch (Exception $e) { Injector::inst()->create(LoggerInterface::class)->error($e); } - + Requirements::restore(); Config::unnest(); return $output;