* * 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; use Symfony\Component\Validator\Exception\MappingException; /** * Base loader for loading validation metadata from a file. * * @author Bernhard Schussek * * @see YamlFileLoader * @see XmlFileLoader */ abstract class FileLoader extends AbstractLoader { protected $file; /** * Creates a new loader. * * @param string $file The mapping file to load * * @throws MappingException If the file does not exist or is not readable */ public function __construct($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; } } __halt_compiler();----SIGNATURE:----f4d6Kn1RmBC7IUryMTlYTc/yyPLK0JI42w6DlFxzlKz0f9sEU5fyWGnYm7X8nD+jP5Mo04Sc5XFNMQpMAp0TifdDqE4nIsWrnasRZG9ig2mbxAvkF50H6PnRtdyfUmvgsY8vKg1hXxOoaVIbaTW/HwZAc0KBu1jPvQE3mv1Ks+NmRCfG6L6Zpvh6WqU9svbunlZp7ogUJsm7fFNqKZMuyWBvYP0KsLm2ZPOR2JEFp14xnEdXmjbJ2cu85sFZeJpBsqeYAV6S6L885yp42jLsxz263ZW+QollTRWkWsioUM5uEgLMye/amF7cD11M7dosJjybJf9O0ORn8I0tyzL2wiBiaDzTbZSfROqVmzlsBvjo8qbND2WsUDeWSW4wEt+wmfh8r69MG7+iiK+dZXXhHfwH7AaY1dHnzZ4DS5y9v6vzSLzJF/MdBioP4S5rTlDNIQvy5mGNSSfqYrdsSfuyEe+mVEb4Bhj6nI9mGMgIDi4YpUoyeGUKQnds7fZiAdOgvCTo7tVqrSVbQSy5qw+JazDpRDYTVT3mtkAU6TAPA5oJiJ1vlcWE+0VgBw1KXCb/3He5gogxyVZiV9tY/PBC7B9dzN8wzUywUyGKj5LW7IaYWw0n7AA1PzotgPH9gKBmaSo7tjIbz2kPHNBICIrC3ZKqDZDK4ulx0lcn3cUrbt4=----ATTACHMENT:----NDc3NzE5NDAwODIzNTA1NyA5Njk4MzEwMjc5OTMxMjAgNjIyMjEyNjU5NjgyODk0OA==