Commit 202aceb5 authored by Udit Rawat's avatar Udit Rawat Committed by Daniel Moberly
Browse files

Issue #3307945 by uditrawat: WavesurferAudioPlayer requires concrete class rather than interface

parent 400f3fa4
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@

namespace Drupal\audiofield\Plugin\AudioPlayer;

use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\audiofield\AudioFieldPluginBase;
use Drupal\Component\Serialization\Json;
@@ -11,7 +12,6 @@ use Drupal\Core\Asset\LibraryDiscovery;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\File\FileUrlGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

@@ -34,14 +34,14 @@ class WavesurferAudioPlayer extends AudioFieldPluginBase {
  /**
   * Module handler service.
   *
   * @var Drupal\Core\Extension\ModuleHandler
   * @var \Drupal\Core\Extension\ModuleHandlerInterface
   */
  protected $moduleHandler;

  /**
   * {@inheritdoc}
   */
  public function __construct(array $configuration, $plugin_id, $plugin_definition, LibraryDiscovery $library_discovery, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, FileSystemInterface $file_system, ModuleHandler $module_handler, FileUrlGenerator $file_url_generator) {
  public function __construct(array $configuration, $plugin_id, $plugin_definition, LibraryDiscovery $library_discovery, MessengerInterface $messenger, LoggerChannelFactoryInterface $logger_factory, FileSystemInterface $file_system, ModuleHandlerInterface $module_handler, FileUrlGenerator $file_url_generator) {
    parent::__construct($configuration, $plugin_id, $plugin_definition, $library_discovery, $messenger, $logger_factory, $file_system, $file_url_generator);

    $this->moduleHandler = $module_handler;