Closed (fixed)
Project:
OutVoice
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2018 at 09:55 UTC
Updated:
12 Jan 2019 at 22:44 UTC
Jump to comment: Most recent, Most recent file
FILE: ../modules/outvoice_ui/src/Form/OutvoiceSettingsForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
44 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | outvoice-3022808-2.patch | 2.37 KB | saesa |
Comments
Comment #2
saesa commentedComment #3
KishanT commentedInject the dependent service in your core service file
like
session:
class: Symfony\Component\HttpFoundation\Session\Session
arguments: ['@session_manager', '@session.attribute_bag', '@session.flash_bag']
@service_name -> this is service name which you have to inject.
Comment #5
saesa commentedPut status issue in fixed
Comment #6
Mr_Issa commented