diff --git a/framework/core/src/Foundation/AbstractValidator.php b/framework/core/src/Foundation/AbstractValidator.php index 3d8b00a7da..d3b275e593 100644 --- a/framework/core/src/Foundation/AbstractValidator.php +++ b/framework/core/src/Foundation/AbstractValidator.php @@ -55,11 +55,11 @@ public function addConfiguration($callable) * @param Factory $validator * @param TranslatorInterface $translator */ - public function __construct(Factory $validator, TranslatorInterface $translator, Cache $cache) + public function __construct(Factory $validator, TranslatorInterface $translator) { $this->validator = $validator; $this->translator = $translator; - $this->cache = $cache; + $this->cache = resolve(Cache::class); } /**