public function Translator::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/translation/Translator.php \Symfony\Component\Translation\Translator::__construct()
- 8 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::__construct()
Same name and namespace in other branches
- 8.0 vendor/symfony/css-selector/XPath/Translator.php \Symfony\Component\CssSelector\XPath\Translator::__construct()
Constructor.
File
- vendor/
symfony/ css-selector/ XPath/ Translator.php, line 74
Class
- Translator
- XPath expression translator interface.
Namespace
Symfony\Component\CssSelector\XPathCode
public function __construct(ParserInterface $parser = null) {
$this->mainParser = $parser ?: new Parser();
$this
->registerExtension(new Extension\NodeExtension())
->registerExtension(new Extension\CombinationExtension())
->registerExtension(new Extension\FunctionExtension())
->registerExtension(new Extension\PseudoClassExtension())
->registerExtension(new Extension\AttributeMatchingExtension());
}