* * 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:----GX/kE6O4C7RwPmA6MJbkAGiOjFltk5qDUHNb2XvIZkNoUmLFW/AH+UM3y87Ow3QBaGoPv1sRM8zatflfuF/2o9/pGuECGUJoCmb+1nOFK2ajZ3SYxscW44M4OLOli9mMcAprdrwfOibTt7IxbcF60qaQScGxlrx750xZ2y6VffjloTu3ZfQtJAXqA8iL0zn5IzamWcQdecPDa58u8v4EAK8qBoUgHe7I71xqPAIcjUQn3h7rzsdNofXv+j/AhUfRjyt215R+4S95FfZ53Z+hy1EQKmgka1Bfy1gWICUKlCePVGfolTzMEotEaDjBHyM3Vl2dfiZIe8yVP/InS+B0sh+bViCxk02wdZzoGOrU353NnYtphR2PR6hg148n+3wukDqnAppNErlU91O5/03Oynh+llcIq8dCATFvTIewZemLuQrF06CYvNRKjlutiEsdnIsvaKzWQT+bPSzSCL7PKDupDCm2muGyEug1Ae1mNbvfGiUedoCgmQCQMnbOC8zE3DYXiONju5dgL04zn0vZcQzNlnhZM2FHAytlgxw3nNNjzlzfvzn0GWlRT1QkUv/XnTywCoiVl7nweKcjtGht7rs4WeBNpKH9QfnDaNJz2ELOkSgKFLUSrcACuZqI/rERRusIeUibbGnXW+xU29vMuKef2w2YJGmpvtHghghvW+8=----ATTACHMENT:----MzcwMTgyMDY2NDExMjAzNiAzMzk1NTk5ODU5OTI1NTI0IDYwMjAyNTA1NzUzOTY1MDk=