\Drupal calls should be avoided in classes, use dependency injection instead

CommentFileSizeAuthor
#2 3107995-2.patch3.44 KBhardik_patel_12

Comments

Hardik_Patel_12 created an issue. See original summary.

hardik_patel_12’s picture

StatusFileSize
new3.44 KB

Kindly review a patch.

hardik_patel_12’s picture

Assigned: hardik_patel_12 » Unassigned
Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 2: 3107995-2.patch, failed testing. View results

naresh_bavaskar’s picture

Assigned: Unassigned » naresh_bavaskar
amateescu’s picture

Assigned: naresh_bavaskar » Unassigned
Status: Needs work » Closed (works as designed)

Kindly read the comment just above the code you updated.

// Clear the static cache for path aliases. We can't inject the path alias
// manager service because it would create a circular dependency.