Symfony\Component\Translation\Translator::addResource
Adds a Resource.
Signature
public function addResource(string
$format,
[mixed
$resource = null,
[string
$locale = null,
[string
$domain = null]]] )
Parameters
$format
— string- The name of the loader (@see addLoader())
$resource
— mixed- The resource name
$locale
— string- The locale
$domain
— string- The domain