db backup prior to drupal security update
[yaffs-website] / vendor / symfony / validator / Context / LegacyExecutionContext.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Validator\Context;
13
14 @trigger_error('The '.__NAMESPACE__.'\LegacyExecutionContext class is deprecated since version 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);
15
16 use Symfony\Component\Translation\TranslatorInterface;
17 use Symfony\Component\Validator\MetadataFactoryInterface;
18 use Symfony\Component\Validator\Validator\ValidatorInterface;
19
20 /**
21  * An execution context that is compatible with the legacy API (< 2.5).
22  *
23  * @author Bernhard Schussek <bschussek@gmail.com>
24  *
25  * @deprecated since version 2.5, to be removed in 3.0.
26  */
27 class LegacyExecutionContext extends ExecutionContext
28 {
29     /**
30      * @var MetadataFactoryInterface
31      */
32     private $metadataFactory;
33
34     /**
35      * Creates a new context.
36      *
37      * @see ExecutionContext::__construct()
38      *
39      * @internal Called by {@link LegacyExecutionContextFactory}. Should not be used
40      *           in user code.
41      */
42     public function __construct(ValidatorInterface $validator, $root, MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, $translationDomain = null)
43     {
44         parent::__construct(
45             $validator,
46             $root,
47             $translator,
48             $translationDomain
49         );
50
51         $this->metadataFactory = $metadataFactory;
52     }
53 }