You are here

public function LazyLoadingMetadataFactory::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Mapping/Factory/LazyLoadingMetadataFactory.php \Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory::__construct()

Creates a new metadata factory.

Parameters

LoaderInterface|null $loader The loader for configuring new metadata:

CacheInterface|null $cache The cache for persisting metadata: between multiple PHP requests

File

vendor/symfony/validator/Mapping/Factory/LazyLoadingMetadataFactory.php, line 71

Class

LazyLoadingMetadataFactory
Creates new {@link ClassMetadataInterface} instances.

Namespace

Symfony\Component\Validator\Mapping\Factory

Code

public function __construct(LoaderInterface $loader = null, CacheInterface $cache = null) {
  $this->loader = $loader;
  $this->cache = $cache;
}