Skip to content

Commit

Permalink
Introduce stub for EventDispatcherInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
mitelg authored and ondrejmirtes committed Jun 16, 2021
1 parent c3ac708 commit 45e2ae2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ parameters:
- stubs/Symfony/Component/Form/ChoiceList/Loader/ChoiceLoaderInterface.stub
- stubs/Symfony/Component/DependencyInjection/ContainerBuilder.stub
- stubs/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.stub
- stubs/Symfony/Component/EventDispatcher/EventDispatcherInterface.stub
- stubs/Symfony/Component/EventDispatcher/EventSubscriberInterface.stub
- stubs/Symfony/Component/EventDispatcher/GenericEvent.stub
- stubs/Symfony/Component/Form/FormBuilderInterface.stub
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Symfony\Contracts\EventDispatcher;

interface EventDispatcherInterface
{
/**
* @template TEvent of object
* @param TEvent $event
*
* @return TEvent
*/
public function dispatch(object $event, string $eventName = null): object;
}

0 comments on commit 45e2ae2

Please sign in to comment.