public function LoaderChain::loadClassMetadata in Plug 7
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
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Mapping/ Loader/ LoaderChain.php, line 52
Class
- LoaderChain
- Loads validation metadata from multiple {@link LoaderInterface} instances.
Namespace
Symfony\Component\Validator\Mapping\LoaderCode
public function loadClassMetadata(ClassMetadata $metadata) {
$success = false;
foreach ($this->loaders as $loader) {
$success = $loader
->loadClassMetadata($metadata) || $success;
}
return $success;
}