Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 692deff

Browse files
gimlerASA1-ET-JENKINS
authored andcommitted
fix Merge branch '2.7' into 2.8 JsonFileLoader
1 parent ae470cd commit 692deff

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Symfony/Component/Translation/Loader/JsonFileLoader.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,6 @@ class JsonFileLoader extends FileLoader
2525
*/
2626
protected function loadResource($resource)
2727
{
28-
if (!stream_is_local($resource)) {
29-
throw new InvalidResourceException(sprintf('This is not a local file "%s".', $resource));
30-
}
31-
32-
if (!file_exists($resource)) {
33-
throw new NotFoundResourceException(sprintf('File "%s" not found.', $resource));
34-
}
35-
3628
$messages = array();
3729
if ($data = file_get_contents($resource)) {
3830
$messages = json_decode($data, true);

0 commit comments

Comments
 (0)