Skip to content

Commit f5bc06f

Browse files
committed
bug #506 [Live] remove calls to Request::get() (kbond)
This PR was merged into the 2.x branch. Discussion ---------- [Live] remove calls to `Request::get()` | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Tickets | n/a | License | MIT `Request::get()` is marked as ``@internal``. Commits ------- 4c89185 [Live] remove calls to `Request::get()`
2 parents 5e74272 + 4c89185 commit f5bc06f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveComponent/src/EventListener/LiveComponentSubscriber.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function onKernelRequest(RequestEvent $event): void
7474
}
7575

7676
// the default "action" is get, which does nothing
77-
$action = $request->get('action', 'get');
78-
$componentName = (string) $request->get('component');
77+
$action = $request->attributes->get('action', 'get');
78+
$componentName = (string) $request->attributes->get('component');
7979

8080
$request->attributes->set('_component_name', $componentName);
8181

0 commit comments

Comments
 (0)