You are here

public function IdentityTranslator::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/IdentityTranslator.php \Symfony\Component\Translation\IdentityTranslator::__construct()

Constructor.

Parameters

MessageSelector|null $selector The message selector for pluralization:

File

vendor/symfony/translation/IdentityTranslator.php, line 29

Class

IdentityTranslator
IdentityTranslator does not translate anything.

Namespace

Symfony\Component\Translation

Code

public function __construct(MessageSelector $selector = null) {
  $this->selector = $selector ?: new MessageSelector();
}