Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2026 at 14:14 UTC
Updated:
1 Apr 2026 at 14:32 UTC
Jump to comment: Most recent
The MyrestHelper class, despite being a service, contains methods that use \Drupal::service() and \Drupal::entityTypeManager(). This pattern is deprecated and hinders unit testing.
MyrestHelper::__construct to accept EntityTypeManagerInterface and RequestStack.myrest.services.yml to inject these services.getEntityTypeManager() and getRequestStack().Perform refactoring and verify that all service consumers are working correctly.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
sergeydruua commentedComment #5
sergeydruua commented