Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45e2ae2

Browse files
mitelgondrejmirtes
authored andcommitted
Introduce stub for EventDispatcherInterface
1 parent c3ac708 commit 45e2ae2

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
@@ -12,6 +12,7 @@ parameters:
1212
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
1313
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
1414
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub
15+
- stubs/Symfony/Component/EventDispatcher/EventDispatcherInterface.stub
1516
- stubs/Symfony/Component/EventDispatcher/EventSubscriberInterface.stub
1617
- stubs/Symfony/Component/EventDispatcher/GenericEvent.stub
1718
- stubs/Symfony/Component/Form/FormBuilderInterface.stub
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace Symfony\Contracts\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, string $eventName = null): object;
14+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /