* * 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:----bJmjE76x4AL2o9HNbXqV67RROWqRzf0ZNe9jZfdvu6yPGYLZZ5DMIvM6uaJF1Vgz13+ujDbGaEKuG02RZPHKz8g6JVysLzRu72SjrFPKYgINhj8yybi6Z5sV/U0wRLVFAh15FN4TdbdoiQetHQW/ws+aD88NVqEagHjgYHlu7hZWHdZ3qKEHAUfti4U/2xUQvVItJAq26pk8zGrkrxyzswQfqsFuQs0NwwVenAFeBMKGF5O6OKcO1f8d2RG6Mnk3xpL2KmPP6k6sr+gtFzJfFosIBH606h8UcZ9X+as+hVXrZbhWyF4dpuwPuZHZ+Y/YG5iXEWTv/XU/5Av5ViOjH3kET0vD+rNVNyJRCliLhUE7nZs4dPB54AS9mvf+gbRTqLag5em23/OnRxfYKX/XghlSdawsnm2KxUKfC7LTf78LONBGu3ZHTfBitcNt6bNTbHoKUOezKbRUGu3RH1h8aZ8ul8LUlEUSNqAyfsByheIkdTZl985BvWpsVCiROMu2ubQnKGXNcPPMTxhQLRjESrIU4567XnhPGe0ZMs72B9CnQujtSlXmxK0IzS6tIIORSnmwiXnMwPrwlsYfXKAVkN4bMm3uEapntvOJJA5cGQBfo46mYOoOSjbt0eUwQy6oQV9Sc/qozskO44oDOUjGS/ZHoqKkEsNDQHYI04Rr1gQ=----ATTACHMENT:----NzA3NzM3OTg5NTQ4OTYxNCA4NjYyODU5NjIzNDc2MzMxIDYwNjAzOTkxMTYwMjEyODg=