public function LoaderChain::loadClassMetadata in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Mapping/Loader/LoaderChain.php \Symfony\Component\Validator\Mapping\Loader\LoaderChain::loadClassMetadata()
- 8 vendor/symfony/serializer/Mapping/Loader/LoaderChain.php \Symfony\Component\Serializer\Mapping\Loader\LoaderChain::loadClassMetadata()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/Loader/LoaderChain.php \Symfony\Component\Validator\Mapping\Loader\LoaderChain::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/ 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;
}