You are here

public function LoaderChain::loadClassMetadata in Zircon Profile 8.0

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

Code

public function loadClassMetadata(ClassMetadataInterface $metadata) {
  $success = false;
  foreach ($this->loaders as $loader) {
    $success = $loader
      ->loadClassMetadata($metadata) || $success;
  }
  return $success;
}