File "FileLoader.php"

Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/vendor-prefixed/symfony/validator/Mapping/Loader/FileLoader.php
File size: 692 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Symfony\Component\Validator\Mapping\Loader;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Symfony\Component\Validator\Exception\MappingException;
abstract class FileLoader extends AbstractLoader
{
 protected $file;
 public function __construct(string $file)
 {
 if (!\is_file($file)) {
 throw new MappingException(\sprintf('The mapping file "%s" does not exist.', $file));
 }
 if (!\is_readable($file)) {
 throw new MappingException(\sprintf('The mapping file "%s" is not readable.', $file));
 }
 if (!\stream_is_local($this->file)) {
 throw new MappingException(\sprintf('The mapping file "%s" is not a local file.', $file));
 }
 $this->file = $file;
 }
}