Problem/Motivation

The last parameter in WavesurferAudioPlayer::__construct() specifies the concrete class Drupal\Core\Extension\ModuleHandler which breaks the status report page of the admin
TypeError: Argument 8 passed to Drupal\audiofield\Plugin\AudioPlayer\WavesurferAudioPlayer::__construct() must be an instance of Drupal\Core\Extension\ModuleHandler, instance of Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /app/web/modules/contrib/audiofield/src/Plugin/AudioPlayer/WavesurferAudioPlayer.php on line 61 in Drupal\audiofield\Plugin\AudioPlayer\WavesurferAudioPlayer->__construct() (line 43 of modules/contrib/audiofield/src/Plugin/AudioPlayer/WavesurferAudioPlayer.php).

Proposed resolution

Use \Drupal\Core\Extension\ModuleHandlerInterface instead.

CommentFileSizeAuthor
#3 3307945-2.patch1.93 KBuditrawat
#2 3307945-1.patch1.8 KBuditrawat

Comments

uditrawat created an issue. See original summary.

uditrawat’s picture

StatusFileSize
new1.8 KB

Added patch for version 8.x-1.11

uditrawat’s picture

StatusFileSize
new1.93 KB

Added patch for 8.x-1.x-dev

uditrawat’s picture

Assigned: uditrawat » Unassigned
Status: Active » Needs review
daniel.moberly’s picture

Status: Needs review » Fixed

Committed. Thanks!

  • Daniel.Moberly committed 202aceb on 8.x-1.x
    Issue #3307945 by uditrawat: WavesurferAudioPlayer requires concrete...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.