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
--------------------------------------------------------------------------
CommentFileSizeAuthor
#2 outvoice-3022808-2.patch2.37 KBsaesa

Comments

saesa created an issue. See original summary.

saesa’s picture

Status: Active » Needs review
StatusFileSize
new2.37 KB
KishanT’s picture

Inject 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.

  • Mr_Issa committed 7f6e8ba on 8.x-1.x
    Issue #3022808 by Mr Issa, saesa: applied patch from saesa and some...
saesa’s picture

Put status issue in fixed

Mr_Issa’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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