* * 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:----RlTGFn1XzFKOhqYL3pzNwLHEt3osHroKsbnfyjkyPqANDhrQqLfNGSdL2KTps23b4YCGAIjyofctYwtG43PvQ2M0qsh3djlR/KpU9ZwPvjTUYgBfKefkbWDdz8xerwYCOaix/qv+UD6sulMG64DrUqfZ4PbNBGH6LShpaRpYTp4EPNyaejgV2atrOI44wJ8POg5mLBEgEX8dyczYXWqHsIHS5FhSQWtebq1GfN7qCERGCq60Oks+c6d7RgyPhVbOpdBsXp2fKz7QeLdiBEnsoW7xwBJYVoSeyNGm3lgOeLY/Dh8uqQa4/YvLaCTDiO3Qxhhn6xT0axjM/I3RfdXS5/ASP9PwgyiyzYTnFPM20Gy3MeWY3DnyAii/0Cd+FZDWfTI32C/KDIwMKSeXFrUFM3r5fXpi8Jx4Ao/fSSsbH+oT0DD6iRyPRWJ6I5/OdACgiSFsaQMzj3mnb2uszxZr8v0AB9PaHmrVxELXaNqMwORU7mJUCgn8MBX3b2HHd1iiqCB3ktfiK1ae589OIIixApbuxj2qvHq8QAfhjT/kv+dNnf/8i8iWzUVbntRdztg8gQlM+wvm3qfaSy+geDbG7xrPnppDrVBmCh6FSkvXSamSpZEk1X8NUODJ2a7e7YezukIHJp2NsX6Nx+bioWcu2GLbhV1AEaByCuEH8Wk7ZdI=----ATTACHMENT:----NzU5NTYxNzkxNzc1NDM5NSA4Njg3NDc2MTQ2MzUzMjg0IDI1MDg1ODU1MDc3NzY3NTE=