You are here

public function LazyLoadingMetadataFactory::__construct in Plug 7

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

lib/Symfony/validator/Symfony/Component/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;
}