You are here

public function TestLoader::loadClassMetadata in Zircon Profile 8

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

Loads validation metadata into a {@link ClassMetadata} instance.

Parameters

ClassMetadata $metadata The metadata to load:

Return value

bool Whether the loader succeeded

Overrides LoaderInterface::loadClassMetadata

File

vendor/symfony/validator/Tests/Mapping/Factory/LazyLoadingMetadataFactoryTest.php, line 114

Class

TestLoader

Namespace

Symfony\Component\Validator\Tests\Mapping\Factory

Code

public function loadClassMetadata(ClassMetadata $metadata) {
  $metadata
    ->addConstraint(new ConstraintA());
}