From 8eb7deec4cbcfa367e54f4e5ca64a7e46be53bd2 Mon Sep 17 00:00:00 2001 From: elizoller Date: Thu, 19 Nov 2020 16:19:55 +0000 Subject: [PATCH] fix dependency injection --- .../islandora_iiif/src/Plugin/views/style/IIIFManifest.php | 5 +++-- src/EventGenerator/EmitEvent.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php index fe17dbd6..4ac1537f 100644 --- a/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php +++ b/modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php @@ -80,7 +80,7 @@ class IIIFManifest extends StylePluginBase { * * @var \Drupal\Core\Messenger\MessengerInterface */ - private $messenger; + protected $messenger; /** * {@inheritdoc} @@ -108,7 +108,8 @@ class IIIFManifest extends StylePluginBase { $container->get('request_stack')->getCurrentRequest(), $container->get('config.factory')->get('islandora_iiif.settings'), $container->get('file_system'), - $container->get('http_client') + $container->get('http_client'), + $container->get('messenger') ); } diff --git a/src/EventGenerator/EmitEvent.php b/src/EventGenerator/EmitEvent.php index 96a384bc..2ebeed0c 100644 --- a/src/EventGenerator/EmitEvent.php +++ b/src/EventGenerator/EmitEvent.php @@ -61,7 +61,7 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact * * @var \Drupal\Core\Messenger\MessengerInterface */ - private $messenger; + protected $messenger; /** * Constructs a EmitEvent action. @@ -117,7 +117,8 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact $container->get('entity_type.manager'), $container->get('islandora.eventgenerator'), $container->get('islandora.stomp'), - $container->get('jwt.authentication.jwt') + $container->get('jwt.authentication.jwt'), + $container->get('messenger') ); }