Unmarked Incompatibility with Symfony ResponseEvent

Created on 15 June 2022, about 2 years ago
Updated 13 July 2024, about 2 months ago

Problem/Motivation

I'm on a codebase running an older version of Drupal 9 (9.1.x) and the current version (1.4) of access unpublished has refactored some of its logic to use newer versions of symfony to replace the isMasterRequest method with the inMainRequest method.

Obviously this method changes upstream in symfony somewhere, so I think that access_unpublished should have something in its composer.json that keeps it inline with the symfony changes. Otherwise, my entire site fatal errs with:

Error: Call to undefined method Symfony\Component\HttpKernel\Event\ResponseEvent::inMainRequest() in Drupal\access_unpublished\EventSubscriber\AddHttpHeaders->onResponse() (line 50 of modules/contrib/access_unpublished/src/EventSubscriber/AddHttpHeaders.php).

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mikemadison Seattle, WA

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