File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ Move the request handling logic into its own ``Simplex\\Framework`` class::
42
42
43
43
public function handle(Request $request)
44
44
{
45
+ $this->matcher->getContext()->fromRequest($request);
46
+
45
47
try {
46
48
$request->attributes->add($this->matcher->match($request->getPathInfo()));
47
49
@@ -69,7 +71,6 @@ And update ``example.com/web/front.php`` accordingly::
69
71
$routes = include __DIR__.'/../src/app.php';
70
72
71
73
$context = new Routing\RequestContext();
72
- $context->fromRequest($request);
73
74
$matcher = new Routing\Matcher\UrlMatcher($routes, $context);
74
75
$resolver = new HttpKernel\Controller\ControllerResolver();
75
76
Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ the Response instance::
72
72
73
73
public function handle(Request $request)
74
74
{
75
+ $this->matcher->getContext()->fromRequest($request);
76
+
75
77
try {
76
78
$request->attributes->add($this->matcher->match($request->getPathInfo()));
77
79
You can’t perform that action at this time.
0 commit comments