FILE: C:\xampp\htdocs\test\web\modules\custom\decoupled_cookie_auth\src\EventSubscriber\ModifiedResourceResponseSubscriber.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
79 | WARNING | User::load calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------------

Comments

Harsh panchal created an issue. See original summary.

Harsh panchal’s picture

Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new936 bytes

I have fixed this issue and providing a patch.

shaundychko’s picture

Status: Needs review » Fixed

Thank you! I also added the entityTypeManager to the service.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.