FILE: /var/www/html/drupal_contrib/web/modules/contrib/instagram_graph/src/Controller/OAuthController.php
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------
78 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
84 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal_contrib/web/modules/contrib/instagram_graph/src/Image.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
60 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3115079-4.patch | 4.53 KB | santerref |
| #3 | 3115079-3.patch | 4.11 KB | swatichouhan012 |
Comments
Comment #2
ravi.shankar commentedComment #3
swatichouhan012 commentedI have created patch to use dependency injection in classes, kindly review.
Comment #4
santerref commentedHi @swatichouhan012 !
Thanks for your patch #3
There was a little error on line 48 (unwanted comma) and the new entity_type.manager service was not added to the services.yml file.
Comment #6
santerref commentedComment #7
santerref commentedAdded to alpha2 release.