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/serializer/Mapping/Loader/LoaderChain.php \Symfony\Component\Serializer\Mapping\Loader\LoaderChain::loadClassMetadata()
Load class metadata.
Parameters
ClassMetadataInterface $classMetadata A metadata:
Return value
bool
Overrides LoaderInterface::loadClassMetadata
File
- vendor/
symfony/ serializer/ Mapping/ Loader/ LoaderChain.php, line 56
Class
- LoaderChain
- Calls multiple {@link LoaderInterface} instances in a chain.
Namespace
Symfony\Component\Serializer\Mapping\LoaderCode
public function loadClassMetadata(ClassMetadataInterface $metadata) {
$success = false;
foreach ($this->loaders as $loader) {
$success = $loader
->loadClassMetadata($metadata) || $success;
}
return $success;
}