php-hotfix/src/Hotfix/Loader/HttpLoader.php

16 lines
292 B
PHP
Raw Normal View History

2016-04-19 15:54:03 +02:00
<?php
namespace NoccyLabs\Hotfix\Hotfix\Loader;
class HttpLoader implements LoaderInterface
{
public function load($fix)
{
2016-04-19 16:37:31 +02:00
if (preg_match("/^http[s]?:/", $fix)) {
$body = file_get_contents($fix);
return $body;
}
2016-04-19 15:54:03 +02:00
return false;
}
}