Symfony 3.4.49: Argument 2 passed to FilterControllerEvent::__construct() must be callable, array given

raw

README.rst

Error

Type error: Argument 2 passed to SymfonyComponentHttpKernelEventFilterControllerEvent::__construct() must be callable, array given, called in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php on line 138

Solution

Controller method was missing Action suffix.

Christian Weiske Christian Weiske
owner

History