Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae470cd commit 692deffCopy full SHA for 692deff
src/Symfony/Component/Translation/Loader/JsonFileLoader.php
@@ -25,14 +25,6 @@ class JsonFileLoader extends FileLoader
25
*/
26
protected function loadResource($resource)
27
{
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
36
$messages = array();
37
if ($data = file_get_contents($resource)) {
38
$messages = json_decode($data, true);
0 commit comments