Browse Source

trying to fix config

d9_islandora
ezoller 4 years ago
parent
commit
5543731683
  1. 18
      src/Plugin/Action/AbstractGenerateDerivative.php

18
src/Plugin/Action/AbstractGenerateDerivative.php

@ -2,6 +2,7 @@
namespace Drupal\islandora\Plugin\Action; namespace Drupal\islandora\Plugin\Action;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface; use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\FormStateInterface; use Drupal\Core\Form\FormStateInterface;
@ -50,6 +51,13 @@ class AbstractGenerateDerivative extends EmitEvent {
*/ */
protected $messenger; protected $messenger;
/**
* The configFactory.
*
* @var \Drupal\Core\Config\ConfigFactory
*/
protected $config;
/** /**
* Constructs a EmitEvent action. * Constructs a EmitEvent action.
* *
@ -77,6 +85,8 @@ class AbstractGenerateDerivative extends EmitEvent {
* Token service. * Token service.
* @param \Drupal\Core\Messenger\MessengerInterface $messenger * @param \Drupal\Core\Messenger\MessengerInterface $messenger
* The messenger. * The messenger.
* @param \Drupal\Core\Config\ConfigFactory
* The config factory.
*/ */
public function __construct( public function __construct(
array $configuration, array $configuration,
@ -90,7 +100,8 @@ class AbstractGenerateDerivative extends EmitEvent {
IslandoraUtils $utils, IslandoraUtils $utils,
MediaSourceService $media_source, MediaSourceService $media_source,
TokenInterface $token, TokenInterface $token,
MessengerInterface $messenger MessengerInterface $messenger,
ConfigFactory $configFactory;
) { ) {
parent::__construct( parent::__construct(
$configuration, $configuration,
@ -101,9 +112,10 @@ class AbstractGenerateDerivative extends EmitEvent {
$event_generator, $event_generator,
$stomp, $stomp,
$auth, $auth,
$messenger $messenger,
$configFactory
); );
$this->config = $configuration; $this->config = $configFactory;
$this->utils = $utils; $this->utils = $utils;
$this->mediaSource = $media_source; $this->mediaSource = $media_source;
$this->token = $token; $this->token = $token;

Loading…
Cancel
Save