Skip to content
Snippets Groups Projects
Commit cc80e402 authored by Project Update Bot's avatar Project Update Bot Committed by Rich Gerdes
Browse files

Issue #3289412 by Project Update Bot: Automated Drupal 10 compatibility fixes

parent 77de6a8d
Branches
Tags 8.x-1.0-rc7
No related merge requests found
......@@ -2,8 +2,8 @@
namespace Drupal\role_inheritance\EventSubscriber;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
use Drupal\Core\Session\UserSession;
......@@ -36,10 +36,10 @@ class CurrentUserRoleShim implements EventSubscriberInterface {
/**
* Replace the current UserSession object with one that has extended roles.
*
* @param \Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* @param \Symfony\Component\HttpKernel\Event\RequestEvent $event
* Event object being handled.
*/
public function alterUser(GetResponseEvent $event) {
public function alterUser(RequestEvent $event) {
$request = $event->getRequest();
$proxy = \Drupal::currentUser();
$user = $proxy->getAccount();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment