Translator::addResource()

addResource(string $format, mixed $resource, string $locale, string $domain = null)

Adds a Resource.

Parameters

string $format The name of the loader (see addLoader())
mixed $resource The resource name
string $locale The locale
string $domain The domain

Exceptions

InvalidArgumentException If the locale contains invalid characters
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.