Improved error reporting

This commit is contained in:
2016-04-19 16:37:31 +02:00
parent 79bc0a92d9
commit fceb4c4966
5 changed files with 17 additions and 20 deletions

View File

@ -6,6 +6,10 @@ class HttpLoader implements LoaderInterface
{
public function load($fix)
{
if (preg_match("/^http[s]?:/", $fix)) {
$body = file_get_contents($fix);
return $body;
}
return false;
}
}