Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Apr 2026 at 09:19 UTC
Updated:
3 Apr 2026 at 09:24 UTC
Jump to comment: Most recent
Many REST resources in src/Plugin/rest/resource use \Drupal::service() (e.g., for date.formatter) instead of proper dependency injection.
MyrestResourceBase to support common services via DI.create() method and inject required services.Review all 40+ resource plugins and refactor them to use DI.
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 #2
sergeydruua commentedComment #4
sergeydruua commented