Skip to content

Commit e6e3f4b

Browse files
[Contracts][EventDispatcher] add EventDispatcherInterface to symfony/contracts and use it where possible
1 parent 33ba4d5 commit e6e3f4b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Application.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN
9191
$this->defaultCommand = 'list';
9292
}
9393

94+
/**
95+
* @final since Symfony 4.3, the type-hint will be updated to the interface from symfony/contracts in 5.0
96+
*/
9497
public function setDispatcher(EventDispatcherInterface $dispatcher)
9598
{
9699
$this->dispatcher = LegacyEventDispatcherProxy::decorate($dispatcher);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^7.1.3",
20-
"symfony/contracts": "^1.0",
20+
"symfony/contracts": "^1.1",
2121
"symfony/polyfill-mbstring": "~1.0",
2222
"symfony/polyfill-php73": "^1.8"
2323
},

0 commit comments

Comments
 (0)