Symfony\Component\Validator\ValidatorBuilderInterface::setMetadataCache
Sets the cache for caching class metadata.
Signature
public function setMetadataCache(CacheInterface
$cache )
Parameters
$cache
— Symfony\Component\Validator\Mapping\Cache\CacheInterface- The cache instance.
Returns
- ValidatorBuilderInterface
- The builder object.