File "ExecutionContextFactory.php"

Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/vendor-prefixed/symfony/validator/Context/ExecutionContextFactory.php
File size: 728 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Symfony\Component\Validator\Context;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Symfony\Component\Validator\Validator\ValidatorInterface;
use MailPoetVendor\Symfony\Contracts\Translation\TranslatorInterface;
class ExecutionContextFactory implements ExecutionContextFactoryInterface
{
 private $translator;
 private $translationDomain;
 public function __construct(TranslatorInterface $translator, string $translationDomain = null)
 {
 $this->translator = $translator;
 $this->translationDomain = $translationDomain;
 }
 public function createContext(ValidatorInterface $validator, $root)
 {
 return new ExecutionContext($validator, $root, $this->translator, $this->translationDomain);
 }
}