Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This is wrong:
$this->container->set('current_user', $user);
and should be replaced with
$this->container->get('request')->attributes->set('_account', $user);
Comments
Comment #1
tstoecklerActually, I'm not sure there's anything wrong with the current code. See line 606 in core.services.yml
Comment #2
klausiOh, some people said on IRC that the current user service is not supposed to be set ... I'm confused now. Please re-open if you think this needs fixing.