Skip to content

Commit

Permalink
fix Merge branch '2.7' into 2.8 JsonFileLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
gimler authored and ASA1-ET-JENKINS committed Jun 11, 2015
1 parent a46dbe3 commit 95f9b02
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Loader/JsonFileLoader.php
Expand Up @@ -25,14 +25,6 @@ class JsonFileLoader extends FileLoader
*/
protected function loadResource($resource)
{
if (!stream_is_local($resource)) {
throw new InvalidResourceException(sprintf('This is not a local file "%s".', $resource));
}

if (!file_exists($resource)) {
throw new NotFoundResourceException(sprintf('File "%s" not found.', $resource));
}

$messages = array();
if ($data = file_get_contents($resource)) {
$messages = json_decode($data, true);
Expand Down

0 comments on commit 95f9b02

Please sign in to comment.