* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator\Mapping\Loader; /** * Base loader for loading validation metadata from a list of files. * * @author Bulat Shakirzyanov * @author Bernhard Schussek * * @see YamlFilesLoader * @see XmlFilesLoader */ abstract class FilesLoader extends LoaderChain { /** * Creates a new loader. * * @param array $paths An array of file paths */ public function __construct(array $paths) { parent::__construct($this->getFileLoaders($paths)); } /** * Returns an array of file loaders for the given file paths. * * @param array $paths An array of file paths * * @return LoaderInterface[] The metadata loaders */ protected function getFileLoaders($paths) { $loaders = array(); foreach ($paths as $path) { $loaders[] = $this->getFileLoaderInstance($path); } return $loaders; } /** * Creates a loader for the given file path. * * @param string $path The file path * * @return LoaderInterface The created loader */ abstract protected function getFileLoaderInstance($path); } __halt_compiler();----SIGNATURE:----rNNNMcBCXb4eHgRQ73sHxgr7MXXVbiZFm3z+b/RruB4CNP6zklsfyFc2qTjRew3nOdWBRC3Ca+6e7EGpkc0R5xhljm5d1OIxuXlJAA5ku36bbwYDuLM0cDse3dHEJXKdKT34IMeR4hh9U0/+r2Cpg2eZkrcDk6z5GZqvIPXV1tm0zBHveFd5VJkIhN6fVEhDfPcJDRexjQwOSjd8cLlgrKvPm54mMZNSiI35f1LxyVQrpnK0sZBlTe0ZQJ3BHQbaHXNHnqTTcPbZaIn0qQZQMN6DQxX6JIBpBBdQAeRQqGgUjWtzFfZTp5JwOFJXWRHw+EBMme4Ey7gk1KTBPoMm7zn9HnT3vsH5syHdelmr0lZYoZiNQ1qC+4NGJUsooUSCZsfbDHbrJH/cPVcdArGUQfZDdAQnGR26ay0wG/XChJFIpsArD5vXBxoxw//WCoEOQUNOvtAiVdBRa+7DZWsTfaXOUwsLfIWvo7zmOc8gq9F9dnXFF9ctaiE2WWeYF0iLUv01t69BJH+MuWa6j1ECtmLnRWa7YsZAumD+32ms+Uff+912R8J2ZZi7chwZxS4vEOPu114Ck4PjbkfM9s0OHCgQcArSRhayj97Q1sJ6PvXOU/i9BHvWLLTYNHNGaRJR/IyIgd8QmofXYP4MsTXPjl9OqaN/wFxuQb2PfxsCBbA=----ATTACHMENT:----NzE4ODY4MzAxNzE3MzU1OCA3ODU2OTA0Mjc1MDU0OTIgMzQ2NzI2NjIyNDY2NzAzOQ==