Symfony\Bundle\FrameworkBundle\Translation\Translator::__construct
Constructor.
Available options: * cache_dir: The cache directory (or null to disable caching) * debug: Whether to enable debugging or not (false by default)
Signature
public function __construct(ContainerInterface
$container,
MessageSelector
$selector,
array
$loaderIds,
array
$options )
Parameters
$container
— Symfony\Component\DependencyInjection\ContainerInterface- A ContainerInterface instance
$selector
— Symfony\Component\Translation\MessageSelector- The message selector for pluralization
$loaderIds
— array- An array of loader Ids
$options
— array- An array of options