Browse Source

fix dependency injection

d9_islandora
elizoller 4 years ago
parent
commit
8eb7deec4c
  1. 5
      modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php
  2. 5
      src/EventGenerator/EmitEvent.php

5
modules/islandora_iiif/src/Plugin/views/style/IIIFManifest.php

@ -80,7 +80,7 @@ class IIIFManifest extends StylePluginBase {
* *
* @var \Drupal\Core\Messenger\MessengerInterface * @var \Drupal\Core\Messenger\MessengerInterface
*/ */
private $messenger; protected $messenger;
/** /**
* {@inheritdoc} * {@inheritdoc}
@ -108,7 +108,8 @@ class IIIFManifest extends StylePluginBase {
$container->get('request_stack')->getCurrentRequest(), $container->get('request_stack')->getCurrentRequest(),
$container->get('config.factory')->get('islandora_iiif.settings'), $container->get('config.factory')->get('islandora_iiif.settings'),
$container->get('file_system'), $container->get('file_system'),
$container->get('http_client') $container->get('http_client'),
$container->get('messenger')
); );
} }

5
src/EventGenerator/EmitEvent.php

@ -61,7 +61,7 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact
* *
* @var \Drupal\Core\Messenger\MessengerInterface * @var \Drupal\Core\Messenger\MessengerInterface
*/ */
private $messenger; protected $messenger;
/** /**
* Constructs a EmitEvent action. * Constructs a EmitEvent action.
@ -117,7 +117,8 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact
$container->get('entity_type.manager'), $container->get('entity_type.manager'),
$container->get('islandora.eventgenerator'), $container->get('islandora.eventgenerator'),
$container->get('islandora.stomp'), $container->get('islandora.stomp'),
$container->get('jwt.authentication.jwt') $container->get('jwt.authentication.jwt'),
$container->get('messenger')
); );
} }

Loading…
Cancel
Save