Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Please replace Drupal::request()
with DI usage in class SpreadshopConfigForm:
FILE: ...or/drupal/pareviewsh/pareview_temp/src/Form/SpreadshopConfigForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
302 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#5 | 3073778-5.patch | 2.11 KB | vuil |
#2 | spreadshop-3073778-2.patch | 603 bytes | jigish.addweb |
Comments
Comment #2
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commented@ilchovuchkov, Here's patch, I resolve the above standard error, Kindly review it & let me know if you still have any findings.
Thanks
Comment #3
is_drehmann CreditAttribution: is_drehmann commented@jigish.addweb
this is not working
Fatal error: Uncaught Error: Call to undefined method Drupal\spreadshop\Form\SpreadshopConfigForm::request() in /var/www/html/modules/custom/spreadshop/src/Form/SpreadshopConfigForm.php:302
Comment #4
is_drehmann CreditAttribution: is_drehmann commentedComment #5
vuilComment #6
vuilComment #8
is_drehmann CreditAttribution: is_drehmann commentedLGTM
Comment #9
is_drehmann CreditAttribution: is_drehmann commentedComment #10
vuilComment #11
vuil