/** * @param string $resource */ private function mapResourceToTheme($resource) { $this->resourcesToThemes->set($resource, $this->themeRepository->findByPath($resource)); }