You are here

protected function FilesLoader::getFileLoaders in Plug 7

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 lib/Symfony/validator/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php
Creates a new loader.

File

lib/Symfony/validator/Symfony/Component/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;
}