From 692deff7b032287f3fa93123296309aadd69c311 Mon Sep 17 00:00:00 2001 From: Gordon Franke Date: Thu, 11 Jun 2015 21:27:42 +0200 Subject: [PATCH] fix Merge branch '2.7' into 2.8 JsonFileLoader --- .../Component/Translation/Loader/JsonFileLoader.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/Symfony/Component/Translation/Loader/JsonFileLoader.php b/src/Symfony/Component/Translation/Loader/JsonFileLoader.php index a5b8a4424f..ce4e91ff4f 100644 --- a/src/Symfony/Component/Translation/Loader/JsonFileLoader.php +++ b/src/Symfony/Component/Translation/Loader/JsonFileLoader.php @@ -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);