public function LoaderChain::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Mapping/Loader/LoaderChain.php \Symfony\Component\Validator\Mapping\Loader\LoaderChain::__construct()
- 8 vendor/symfony/serializer/Mapping/Loader/LoaderChain.php \Symfony\Component\Serializer\Mapping\Loader\LoaderChain::__construct()
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Mapping/Loader/LoaderChain.php \Symfony\Component\Validator\Mapping\Loader\LoaderChain::__construct()
Parameters
LoaderInterface[] $loaders The metadata loaders to use:
Throws
MappingException If any of the loaders has an invalid type
1 call to LoaderChain::__construct()
- FilesLoader::__construct in vendor/
symfony/ validator/ Mapping/ Loader/ FilesLoader.php - Creates a new loader.
1 method overrides LoaderChain::__construct()
- FilesLoader::__construct in vendor/
symfony/ validator/ Mapping/ Loader/ FilesLoader.php - Creates a new loader.
File
- vendor/
symfony/ validator/ Mapping/ Loader/ LoaderChain.php, line 38
Class
- LoaderChain
- Loads validation metadata from multiple {@link LoaderInterface} instances.
Namespace
Symfony\Component\Validator\Mapping\LoaderCode
public function __construct(array $loaders) {
foreach ($loaders as $loader) {
if (!$loader instanceof LoaderInterface) {
throw new MappingException(sprintf('Class %s is expected to implement LoaderInterface', get_class($loader)));
}
}
$this->loaders = $loaders;
}