mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +02:00
[feature/controller] Allow injecting Symfony Request into controllers
PHPBB3-10864
This commit is contained in:
@@ -109,6 +109,10 @@ class phpbb_controller_resolver implements ControllerResolverInterface
|
|||||||
{
|
{
|
||||||
$arguments[] = $attributes[$param->name];
|
$arguments[] = $attributes[$param->name];
|
||||||
}
|
}
|
||||||
|
else if ($param->getClass() && $param->getClass()->isInstance($request))
|
||||||
|
{
|
||||||
|
$arguments[] = $request;
|
||||||
|
}
|
||||||
else if ($param->isDefaultValueAvailable())
|
else if ($param->isDefaultValueAvailable())
|
||||||
{
|
{
|
||||||
$arguments[] = $param->getDefaultValue();
|
$arguments[] = $param->getDefaultValue();
|
||||||
|
Reference in New Issue
Block a user