- Issue created by @codebymikey
- @codebymikey opened merge request.
- Status changed to Needs review
over 1 year ago 11:18am 7 July 2023
The \Drupal\redirect_node\EventSubscriber\RedirectRedirectNodes
throws the following exception when the restrict_by_ip
module is installed.
It throws the following exception:
TypeError: Drupal\redirect_node\EventSubscriber\RedirectRedirectNodes::__construct(): Argument #1 ($currentUser) must be of type Drupal\Core\Session\AccountProxy, Drupal\restrict_by_ip\Session\AccountProxy given, called in /app/application/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 259 in Drupal\redirect_node\EventSubscriber\RedirectRedirectNodes->__construct() (line 44 of /app/application/web/modules/contrib/redirect_node/src/EventSubscriber/RedirectRedirectNodes.php)
Install the restrict_by_ip
module.
Use AccountProxyInterface rather than AccountProxy for the event subscriber parameter.
N/A
Needs review
1.0
Code