schema
3 years ago
AbstractLoader.php
4 years ago
AnnotationLoader.php
1 year ago
AutoMappingTrait.php
1 year ago
FileLoader.php
4 years ago
FilesLoader.php
4 years ago
LoaderChain.php
4 years ago
LoaderInterface.php
4 years ago
PropertyInfoLoader.php
1 year ago
StaticMethodLoader.php
4 years ago
XmlFileLoader.php
4 years ago
XmlFilesLoader.php
4 years ago
YamlFileLoader.php
4 years ago
YamlFilesLoader.php
4 years ago
index.php
3 years ago
FilesLoader.php
20 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\Validator\Mapping\Loader; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | abstract class FilesLoader extends LoaderChain |
| 5 | { |
| 6 | public function __construct(array $paths) |
| 7 | { |
| 8 | parent::__construct($this->getFileLoaders($paths)); |
| 9 | } |
| 10 | protected function getFileLoaders(array $paths) |
| 11 | { |
| 12 | $loaders = []; |
| 13 | foreach ($paths as $path) { |
| 14 | $loaders[] = $this->getFileLoaderInstance($path); |
| 15 | } |
| 16 | return $loaders; |
| 17 | } |
| 18 | protected abstract function getFileLoaderInstance(string $path); |
| 19 | } |
| 20 |