You are here

protected function FilesLoader::getFileLoaders in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Mapping/Loader/FilesLoader.php \Symfony\Component\Validator\Mapping\Loader\FilesLoader::getFileLoaders()

Returns an array of file loaders for the given file paths.

Parameters

array $paths An array of file paths:

Return value

LoaderInterface[] The metadata loaders

1 call to FilesLoader::getFileLoaders()
FilesLoader::__construct in vendor/symfony/validator/Mapping/Loader/FilesLoader.php
Creates a new loader.

File

vendor/symfony/validator/Mapping/Loader/FilesLoader.php, line 42

Class

FilesLoader
Base loader for loading validation metadata from a list of files.

Namespace

Symfony\Component\Validator\Mapping\Loader

Code

protected function getFileLoaders($paths) {
  $loaders = array();
  foreach ($paths as $path) {
    $loaders[] = $this
      ->getFileLoaderInstance($path);
  }
  return $loaders;
}