Problem/Motivation

Drupal and DrupalPractice asked dependency injection on ManageResolverRelationships

Proposed resolution

inject Drupal\Core\Form\FormBuilder and Drupal\Core\DependencyInjection\Container;

Remaining tasks

User interface changes

API changes

Data model changes

Comments

Thalles created an issue. See original summary.

thalles’s picture

Status: Needs review » Needs work
thalles’s picture

thalles’s picture

Status: Needs work » Needs review
thalles’s picture

Title: Drupal dependency injection on RequiredContext » Drupal dependency injection on ManageResolverRelationships
thalles’s picture

Assigned: thalles » Unassigned
joelpittet’s picture

+++ b/src/Form/ManageResolverRelationships.php
@@ -24,6 +26,40 @@ abstract class ManageResolverRelationships extends FormBase {
+      $container->get('service_container'),

Why not just use the $container we are working with?

thalles’s picture

andrtroe’s picture

You had a small typo in comments, I have fixed it.

andrtroe’s picture

Status: Needs review » Reviewed & tested by the community
thalles’s picture

Thanks for the corrections @Andrey!

andrtroe’s picture

Sorry, missed one wrong comment.

  • joelpittet committed 2bf5161 on 8.x-3.x authored by thalles
    Issue #3013307 by thalles, andrey.troeglazov, joelpittet: Drupal...
joelpittet’s picture

Status: Reviewed & tested by the community » Fixed

Thank you two. I tweaked (lowercase without the word 'service') the variable docblocs and removed the create method inline comments on commit and pushed to the dev branch.

thalles’s picture

Thanks!
#ehTois!

Status: Fixed » Closed (fixed)

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