Browse Source

fix for deprecated Symfony Event class

MNPALS-2.x
Seth Shaw 2 years ago committed by Rosie Le Faive
parent
commit
4e091e524f
  1. 2
      composer.json
  2. 2
      src/Event/StompHeaderEvent.php
  3. 4
      src/EventGenerator/EmitEvent.php

2
composer.json

@ -21,7 +21,7 @@
"drupal/file_replace": "^1.1",
"drupal/filehash": "^2",
"drupal/flysystem" : "^2.0@alpha",
"drupal/jwt": "^1.0",
"drupal/jwt": "^1.1",
"drupal/migrate_plus" : "^5.1 || ^6",
"drupal/migrate_source_csv" : "^3.4",
"drupal/prepopulate" : "^2.2",

2
src/Event/StompHeaderEvent.php

@ -6,7 +6,7 @@ use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\EventDispatcher\Event;
use Drupal\Component\EventDispatcher\Event;
/**
* Event used to build headers for STOMP.

4
src/EventGenerator/EmitEvent.php

@ -160,8 +160,8 @@ abstract class EmitEvent extends ConfigurableActionBase implements ContainerFact
$data = $this->generateData($entity);
$event = $this->eventDispatcher->dispatch(
StompHeaderEvent::EVENT_NAME,
new StompHeaderEvent($entity, $user, $data, $this->getConfiguration())
new StompHeaderEvent($entity, $user, $data, $this->getConfiguration()),
StompHeaderEvent::EVENT_NAME
);
$message = new Message(

Loading…
Cancel
Save