Skip to content

Commit

Permalink
Quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nark3d committed Jan 1, 2016
1 parent e52bc41 commit ec0ffa5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,9 @@ public static function fromString($string)
{
return new static($string);
}

public static function fromUrl($url)
{
return self::fromString(file_get_contents($url));
}
}

0 comments on commit ec0ffa5

Please sign in to comment.