Skip to content

Commit 5f36605

Browse files
committed
minor #14954 fix Merge branch '2.7' into 2.8 JsonFileLoader (gimler)
This PR was merged into the 2.8 branch. Discussion ---------- fix Merge branch '2.7' into 2.8 JsonFileLoader This fix a merge commit see 5593bdd. The `stream_is_local` and `file_exists` checks are all ready done in the parent `FileLoader` class. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | no | Fixed tickets | none | License | MIT | Doc PR | none Commits ------- 692deff fix Merge branch '2.7' into 2.8 JsonFileLoader
2 parents ae470cd + 692deff commit 5f36605

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy