private function findLocale(string $code) : LocaleInterface { return $this->localeManager->getRepository()->findOneBy(['code' => $code]); }