Browse Source

Merge pull request #928 from seth-shaw-asu/issue-927

fix for deprecated Symfony Event class
pull/933/head v2.6.4
Jordan Dukart 2 years ago committed by GitHub
parent
commit
db85922765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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/file_replace": "^1.1",
"drupal/filehash": "^2", "drupal/filehash": "^2",
"drupal/flysystem" : "^2.0@alpha", "drupal/flysystem" : "^2.0@alpha",
"drupal/jwt": "^1.0", "drupal/jwt": "^1.1",
"drupal/migrate_plus" : "^5.1 || ^6", "drupal/migrate_plus" : "^5.1 || ^6",
"drupal/migrate_source_csv" : "^3.4", "drupal/migrate_source_csv" : "^3.4",
"drupal/prepopulate" : "^2.2", "drupal/prepopulate" : "^2.2",

2
src/Event/StompHeaderEvent.php

@ -6,7 +6,7 @@ use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
use Symfony\Component\HttpFoundation\ParameterBag; use Symfony\Component\HttpFoundation\ParameterBag;
use Symfony\Component\EventDispatcher\Event; use Drupal\Component\EventDispatcher\Event;
/** /**
* Event used to build headers for STOMP. * 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); $data = $this->generateData($entity);
$event = $this->eventDispatcher->dispatch( $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( $message = new Message(

Loading…
Cancel
Save