Use dependency Injection

Created on 25 January 2020, almost 5 years ago
Updated 27 June 2023, over 1 year ago

No need to call /Drupal global service as controllerbase give you all these out of the box,

Thanks all to give response. I have used the patch which is working fine now.
But it is giving one error as given below :

FILE: ...pal/pareviewsh/pareview_temp/src/Controller/EntityWordController.php
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
62 | ERROR | Expected type hint "TokenInterface"; found "Token" for
| | $token
--------------------------------------------------------------------------

This has been fixed now.

📌 Task
Status

Fixed

Version

3.1

Component

Code

Created by

🇮🇳India joy29

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024