Skip to content

Commit 23ec463

Browse files
committed
TASK: Provide stub for EventDispatcherInterface
Resolves: #135
1 parent bd4c8d5 commit 23ec463

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ parameters:
141141
websiteTitle: string
142142
stubFiles:
143143
- stubs/DomainObjectInterface.stub
144+
- stubs/EventDispatcher.stub
144145
- stubs/ObjectStorage.stub
145146
- stubs/QueryFactory.stub
146147
- stubs/QueryInterface.stub

stubs/EventDispatcher.stub

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Psr\EventDispatcher;
4+
5+
interface EventDispatcherInterface
6+
{
7+
/**
8+
* @template TEvent of object
9+
* @param TEvent $event
10+
*
11+
* @return TEvent
12+
*/
13+
public function dispatch(object $event);
14+
}

0 commit comments

Comments
 (0)