Closed (outdated)
Project:
RELAXed Web Services
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2015 at 19:41 UTC
Updated:
1 Aug 2017 at 07:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
johnstorey commentedComment #6
timmillwoodI think it would be better to use dependency injection. Look at the __construct (https://api.drupal.org/api/drupal/core%21modules%21rest%21src%21Plugin%2...) and create (https://api.drupal.org/api/drupal/core%21modules%21rest%21src%21Plugin%2...) methods from ResourceBase as an example, then pull in
$container->get('entity.manager').Comment #7
jeqq commentedThis has been fixed.