File "FilesLoader.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/vendor-prefixed/symfony/validator/Mapping/Loader/FilesLoader.php
File size: 497 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace MailPoetVendor\Symfony\Component\Validator\Mapping\Loader;
if (!defined('ABSPATH')) exit;
abstract class FilesLoader extends LoaderChain
{
public function __construct(array $paths)
{
parent::__construct($this->getFileLoaders($paths));
}
protected function getFileLoaders(array $paths)
{
$loaders = [];
foreach ($paths as $path) {
$loaders[] = $this->getFileLoaderInstance($path);
}
return $loaders;
}
protected abstract function getFileLoaderInstance(string $path);
}