Use messenger method not property (not set)

Created on 15 May 2023, about 1 year ago

Problem/Motivation

The messenger property of DefaultController is not set - use the messenger() method of the parent class' MessengerTrait.

Steps to reproduce

Flush the facebook cache for a node, the error message "Call to a member function addMessage() on null in Drupal\facebook_flush_cache\Controller\DefaultController->execute()" is shown.

Proposed resolution

Attached patch uses the messenger() method.

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada bgilhome Victoria

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

Comments & Activities

Production build 0.69.0 2024