Symfony\Component\ErrorHandler\Error\FatalError {#807 -error: array:4 [ "type" => 64 "message" => "Declaration of App\Translation\DatabaseTranslationLoader::load($resource, $locale, $domain = 'messages') must be compatible with Symfony\Component\Translation\Loader\LoaderInterface::load(mixed $resource, string $locale, string $domain = 'messages'): Symfony\Component\Translation\MessageCatalogue" "file" => "/home/prowebplanners/public_html/casasite-up.prowebplanners.com/src/Translation/DatabaseTranslationLoader.php" "line" => 13 ] }
class DatabaseTranslationLoader implements LoaderInterface{ public function __construct(private EntityManagerInterface $em) {} public function load($resource, $locale, $domain = 'messages') { $catalogue = new MessageCatalogue($locale); $translations = $this->em->getRepository(\App\Entity\Translation::class) ->findBy(['locale' => $locale]);|
FatalError
|
|---|
Symfony\Component\ErrorHandler\Error\FatalError: Compile Error: Declaration of App\Translation\DatabaseTranslationLoader::load($resource, $locale, $domain = 'messages') must be compatible with Symfony\Component\Translation\Loader\LoaderInterface::load(mixed $resource, string $locale, string $domain = 'messages'): Symfony\Component\Translation\MessageCatalogue at /home/prowebplanners/public_html/casasite-up.prowebplanners.com/src/Translation/DatabaseTranslationLoader.php:13 |