Skip to content

Commit

Permalink
Merge pull request #928 from seth-shaw-asu/issue-927
Browse files Browse the repository at this point in the history
fix for deprecated Symfony Event class
  • Loading branch information
jordandukart authored Mar 7, 2023
2 parents 2794f01 + b57f8ff commit db85922
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Event/StompHeaderEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
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.
Expand Down
4 changes: 2 additions & 2 deletions src/EventGenerator/EmitEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ public function execute($entity = NULL) {
$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(
Expand Down

0 comments on commit db85922

Please sign in to comment.