Skip to content

Commit 1e42f0b

Browse files
Added symfony/contracts: a set of abstractions extracted out of the components
1 parent 4c2ee4c commit 1e42f0b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Validator/TraceableValidator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
namespace Symfony\Component\Validator\Validator;
1313

1414
use Symfony\Component\Validator\Context\ExecutionContextInterface;
15+
use Symfony\Contract\Service\ResetInterface;
1516

1617
/**
1718
* Collects some data about validator calls.
1819
*
1920
* @author Maxime Steinhausser <maxime.steinhausser@gmail.com>
2021
*/
21-
class TraceableValidator implements ValidatorInterface
22+
class TraceableValidator implements ValidatorInterface, ResetInterface
2223
{
2324
private $validator;
2425
private $collectedData = array();

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.1.3",
20+
"symfony/contracts": "^1.0",
2021
"symfony/polyfill-ctype": "~1.8",
2122
"symfony/polyfill-mbstring": "~1.0",
2223
"symfony/translation": "~3.4|~4.0"

0 commit comments

Comments
 (0)