Problem/Motivation

Drupal and DrupalPractice asked dependency injection on src/Form/ManageContext.php

Proposed resolution

inject Drupal\Core\DependencyInjection\Container

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Thalles created an issue. See original summary.

thalles’s picture

Status: Needs work » Needs review
FileSize
2.29 KB

Hi, Congratulations for the module!
follow my little contribution

thalles’s picture

Assigned: thalles » Unassigned
joelpittet’s picture

+++ b/src/Form/ManageContext.php
@@ -53,7 +61,11 @@ abstract class ManageContext extends FormBase {
+      $container->get('service_container')

Is there a reason it's not just passing the $container itself?

thalles’s picture

Following is a more appropriate patch!

andrey.troeglazov’s picture

andrey.troeglazov’s picture

Status: Needs review » Reviewed & tested by the community

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

Status: Reviewed & tested by the community » Fixed

Minor changes fixed on commit. Thanks I've pushed this to the dev branch.

thalles’s picture

Thanks!

Status: Fixed » Closed (fixed)

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