* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Context; use Symfony\Component\Translation\TranslatorInterface; use Symfony\Component\Validator\Validator\ValidatorInterface; /** * Creates new {@link ExecutionContext} instances. * * @author Bernhard Schussek * * @internal version 2.5. Code against ExecutionContextFactoryInterface instead. */ class ExecutionContextFactory implements ExecutionContextFactoryInterface { private $translator; private $translationDomain; /** * Creates a new context factory. * * @param TranslatorInterface $translator The translator * @param string|null $translationDomain The translation domain to * use for translating * violation messages */ public function __construct(TranslatorInterface $translator, $translationDomain = null) { $this->translator = $translator; $this->translationDomain = $translationDomain; } /** * {@inheritdoc} */ public function createContext(ValidatorInterface $validator, $root) { return new ExecutionContext( $validator, $root, $this->translator, $this->translationDomain ); } } __halt_compiler();----SIGNATURE:----UC1U8kOqB8OITzPhs4p39YDHMKQmM3k1T381MOxQ549HxbYEnnFa8JTfLfvwlteKdPpy1XfbWj5VYJm4HOuHrGvdRTMRgBqj1rQ/lgDCnm2VFQrSe+7wH+vq3DNvCDHrrxUzbpDgnn5tykx1jXqScwUfMtDeWhyeuCVXAeg6YIH/9Dzj96VigTZw13wtTin+0cFh8xyk16EuwIdxYbIy9tx1D5cueWZPGJ6nT+699pxorBuy7anfqS2L3gemaQaX7CI0H5PQivEsWfLtk9GgP1TI8kC/EcrzSzSp4cqi0MmlsKYsqPlAOkUTH7rf1bP5fRIAeb+YJNoM/hJvIvl6+HEGp1TQQbqnzxZPqy0SXml78qd+P0KYB7KdnMHrDtEku19Ji3q9xzp/SvvoEnnZSuQB8bxfJtTZT1pxxSge+zKsAKNLky3n0LOLuY+zkR5qV/k4E1922ExxiTaVd7W19ZuP1KRF3q7Y9ye5P8Yr5KMXnWm+5In7IXx7M8urz38psyH/ckfJPo7jXQ0ISqqT2eZhfdE0+xf/ncco36q/BbHmTz+RO0IOGEe4WFmgEri6D6vzMg/8xYV7xxMyiSyRCnj0ZkwSg8cvpccPIdooHmQ+CoL3fl9cD+Yo+VDauihSCrA3i1E8OR+FQipjbtc5w7M/NkMiICHUzQibYRbttEc=----ATTACHMENT:----MjY1Njg5MTAxNTU1Mzk2IDEzNTAwMTEwMTg3MzYzNDEgOTM5MzU5ODIxMzkzODk3MQ==