10.1.1: "workspaces.association" must implement interface "EventSubscriberInterface

Created on 8 July 2023, over 1 year ago
Updated 11 July 2023, over 1 year ago

Problem/Motivation

Firstly, great module, thank you. Very useful.

When attempting to enable the module or subsequent submodules on Drupal 10.1.1 I received the following error message: "Service "workspaces.association" must implement interface "Symfony\Component\EventDispatcher\EventSubscriberInterface".

Steps to reproduce

On Drupal 10.1.1, enable Workspaces. Then install WSE module using either UI or via drush.

Proposed resolution

It appears that as the workspaces.association.wse service decorates workspaces.association, the WseWorkspaceAssociation class should also implement EventSubscriberInterface. Adding this along with the getSubscribedEvents function allows install but errors when attempting to switch to another workspace.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

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