Skip to content

Commit 31fbc29

Browse files
committed
Use ControllerArgumentsEvent instead of deprecated FilterControllerArgumentsEvent
1 parent 1039536 commit 31fbc29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/http_kernel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ Name ``KernelEvents`` Constant Argument pa
607607
=========================== ====================================== ===================================================================================
608608
kernel.request ``KernelEvents::REQUEST`` :class:`Symfony\\Component\\HttpKernel\\Event\\RequestEvent`
609609
kernel.controller ``KernelEvents::CONTROLLER`` :class:`Symfony\\Component\\HttpKernel\\Event\\ControllerEvent`
610-
kernel.controller_arguments ``KernelEvents::CONTROLLER_ARGUMENTS`` :class:`Symfony\\Component\\HttpKernel\\Event\\FilterControllerArgumentsEvent`
610+
kernel.controller_arguments ``KernelEvents::CONTROLLER_ARGUMENTS`` :class:`Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent`
611611
kernel.view ``KernelEvents::VIEW`` :class:`Symfony\\Component\\HttpKernel\\Event\\ViewEvent`
612612
kernel.response ``KernelEvents::RESPONSE`` :class:`Symfony\\Component\\HttpKernel\\Event\\ResponseEvent`
613613
kernel.finish_request ``KernelEvents::FINISH_REQUEST`` :class:`Symfony\\Component\\HttpKernel\\Event\\FinishRequestEvent`

reference/events.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ their priorities:
7979
``kernel.controller_arguments``
8080
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8181

82-
**Event Class**: :class:`Symfony\\Component\\HttpKernel\\Event\\FilterControllerArgumentsEvent`
82+
**Event Class**: :class:`Symfony\\Component\\HttpKernel\\Event\\ControllerArgumentsEvent`
8383

8484
This event is dispatched just before a controller is called. It's useful to
8585
configure the arguments that are going to be passed to the controller.
8686
Typically, this is used to map URL routing parameters to their corresponding
8787
named arguments; or pass the current request when the ``Request`` type-hint is
8888
found::
8989

90-
public function onKernelControllerArguments(FilterControllerArgumentsEvent $event)
90+
public function onKernelControllerArguments(ControllerArgumentsEvent $event)
9191
{
9292
// ...
9393

0 commit comments

Comments
 (0)