8000 minor #1074 app.php and console: no need to declare $loader variable … · symfony/symfony-standard@4d28e79 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit 4d28e79

Browse files
committed
minor #1074 app.php and console: no need to declare $loader variable (MacDada)
This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes #1074). Discussion ---------- app.php and console: no need to declare $loader variable The var isn't being used anywhere in the file(s). Because of how "require" works, $loader is still a global variable. Commits ------- 66f5804 app.php and console: no need to declare $loader variable
2 parents d935e50 + 66f5804 commit 4d28e79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web/app.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
use Symfony\Component\HttpFoundation\Request;
44

5-
$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
6-
5+
require_once __DIR__.'/../app/bootstrap.php.cache';
76
require_once __DIR__.'/../app/AppKernel.php';
87
//require_once __DIR__.'/../app/AppCache.php';
98

0 commit comments

Comments
 (0)
0