Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/serializer/Mapping/Loader/LoaderChain.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/vendor/symfony/serializer/Mapping/Loader/LoaderChain.php Mon Apr 23 09:33:26 2018 +0100 +++ b/vendor/symfony/serializer/Mapping/Loader/LoaderChain.php Mon Apr 23 09:46:53 2018 +0100 @@ -27,9 +27,6 @@ */ class LoaderChain implements LoaderInterface { - /** - * @var LoaderInterface[] - */ private $loaders; /** @@ -43,7 +40,7 @@ { foreach ($loaders as $loader) { if (!$loader instanceof LoaderInterface) { - throw new MappingException(sprintf('Class %s is expected to implement LoaderInterface', get_class($loader))); + throw new MappingException(sprintf('Class %s is expected to implement LoaderInterface', \get_class($loader))); } } @@ -63,4 +60,12 @@ return $success; } + + /** + * @return LoaderInterface[] + */ + public function getLoaders() + { + return $this->loaders; + } }