Skip to content

Commit

Permalink
Allow doctrine/event-manager 2
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Oct 13, 2022
1 parent 1a9f40c commit 25e797b
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 @@ -28,7 +28,7 @@
"doctrine/common": "^3.0.3",
"doctrine/dbal": "^2.13.1 || ^3.2",
"doctrine/deprecations": "^0.5.3 || ^1",
"doctrine/event-manager": "^1.1",
"doctrine/event-manager": "^1.2 || ^2",
"doctrine/inflector": "^1.4 || ^2.0",
"doctrine/instantiator": "^1.3",
"doctrine/lexer": "^1.2.3",
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/OrmFunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ protected function getEntityManager(

// get rid of more global state
$evm = $conn->getEventManager();
foreach ($evm->getListeners() as $event => $listeners) {
foreach ($evm->getAllListeners() as $event => $listeners) {
foreach ($listeners as $listener) {
$evm->removeEventListener([$event], $listener);
}
Expand Down

0 comments on commit 25e797b

Please sign in to comment.