File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -30,30 +30,28 @@ The ``app_dev.php`` front controller reads as follows by default::
30
30
31
31
// ...
32
32
33
- require_once __DIR__.'/../app/bootstrap.php.cache';
33
+ $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
34
34
require_once __DIR__.'/../app/AppKernel.php';
35
35
36
- use Symfony\Component\HttpFoundation\Request;
37
-
38
36
$kernel = new AppKernel('dev', true);
39
37
$kernel->loadClassCache();
40
- $kernel->handle( Request::createFromGlobals())->send ();
38
+ $request = Request::createFromGlobals();
41
39
42
40
To make your debugger happier, disable all PHP class caches by removing the
43
41
call to ``loadClassCache() `` and by replacing the require statements like
44
42
below::
45
43
46
44
// ...
47
45
48
- // require_once __DIR__.'/../app/bootstrap.php.cache';
49
- require_once __DIR__.'/../app/autoload.php';
46
+ // $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
47
+ $loader = require_once __DIR__.'/../app/autoload.php';
50
48
require_once __DIR__.'/../app/AppKernel.php';
51
49
52
50
use Symfony\Component\HttpFoundation\Request;
53
51
54
52
$kernel = new AppKernel('dev', true);
55
53
// $kernel->loadClassCache();
56
- $kernel->handle( Request::createFromGlobals())->send ();
54
+ $request = Request::createFromGlobals();
57
55
58
56
.. tip ::
59
57
You can’t perform that action at this time.
0 commit comments