Skip to content

Commit

Permalink
require sf 4.3 with new dispatch() signature
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan committed Jul 18, 2019
1 parent 1fe3b6f commit 6e98139
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [ "propel", "behavior", "event dispatcher", "event" ],
"license": "MIT",
"require": {
"symfony/event-dispatcher": "~2.1|~3.0|~4.0"
"symfony/event-dispatcher": "^4.3"
},
"extra": {
"name": "event_dispatcher",
Expand Down
2 changes: 1 addition & 1 deletion src/templates/objectHook.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
self::getEventDispatcher()->dispatch('<?php echo $eventName ?>', new GenericEvent($this<?php if ($withConnection) : ?>, array('connection' => $con)<?php endif; ?>));
self::getEventDispatcher()->dispatch(new GenericEvent($this<?php if ($withConnection) : ?>, array('connection' => $con)<?php endif; ?>), '<?php echo $eventName ?>');

0 comments on commit 6e98139

Please sign in to comment.