We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 696f6fd commit 3491b75Copy full SHA for 3491b75
framework/core/src/Foundation/AbstractValidator.php
@@ -46,20 +46,15 @@ public function addConfiguration($callable)
46
*/
47
protected $translator;
48
49
- /**
50
- * @var Cache
51
- */
52
- protected $cache;
53
-
54
/**
55
* @param Factory $validator
56
* @param TranslatorInterface $translator
57
58
- public function __construct(Factory $validator, TranslatorInterface $translator, Cache $cache)
+ public function __construct(Factory $validator, TranslatorInterface $translator)
59
{
60
$this->validator = $validator;
61
$this->translator = $translator;
62
- $this->cache = $cache;
+ $this->cache = resolve(Cache::class);
63
}
64
65
0 commit comments