Skip to content

Commit

Permalink
Merge pull request #813 from fezfez/doctrine-event2.0
Browse files Browse the repository at this point in the history
Allow doctrine/event:^2.0
  • Loading branch information
TomHAnderson authored Jul 25, 2023
2 parents bff9269 + f0fc092 commit 562ed42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"doctrine/cache": "^1.13.0 || ^2.1.0",
"doctrine/collections": "^1.8.0 || ^2.1",
"doctrine/doctrine-laminas-hydrator": "^3.2.0",
"doctrine/event-manager": "^1.2.0",
"doctrine/event-manager": "^1.2.0 || ^2.0",
"doctrine/inflector": "^2.0.6",
"doctrine/persistence": "^2.5.5 || ^3.1.0",
"laminas/laminas-authentication": "^2.12.0",
Expand Down
4 changes: 0 additions & 4 deletions tests/Service/EventManagerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public function testWillAttachEventListenersFromConfiguredInstances(): void
$eventManager = $factory->__invoke($serviceManager, EventManager::class);
$this->assertInstanceOf(EventManager::class, $eventManager);

$listeners = $eventManager->getListeners();
$this->assertArrayHasKey('dummy', $listeners);
$listeners = $eventManager->getListeners('dummy');
$this->assertContains($subscriber, $listeners);
}
Expand Down Expand Up @@ -96,8 +94,6 @@ public function testWillAttachEventListenersFromServiceManagerAlias(): void
$eventManager = $factory->__invoke($serviceManager, EventManager::class);
$this->assertInstanceOf(EventManager::class, $eventManager);

$listeners = $eventManager->getListeners();
$this->assertArrayHasKey('dummy', $listeners);
$listeners = $eventManager->getListeners('dummy');
$this->assertContains($subscriber, $listeners);
}
Expand Down

0 comments on commit 562ed42

Please sign in to comment.