16 lines
292 B
PHP
16 lines
292 B
PHP
<?php
|
|
|
|
namespace NoccyLabs\Hotfix\Hotfix\Loader;
|
|
|
|
class HttpLoader implements LoaderInterface
|
|
{
|
|
public function load($fix)
|
|
{
|
|
if (preg_match("/^http[s]?:/", $fix)) {
|
|
$body = file_get_contents($fix);
|
|
return $body;
|
|
}
|
|
return false;
|
|
}
|
|
}
|