This commit is contained in:
Nicolas Grekas 2019-08-13 08:47:41 +02:00
parent 1a02ca4c2a
commit 9b66113701
1 changed files with 3 additions and 3 deletions

View File

@ -74,16 +74,16 @@ EventDispatcher
```php ```php
public function __construct(EventDispatcherInterface $eventDispatcher) { public function __construct(EventDispatcherInterface $eventDispatcher) {
$this->eventDispatcher = $eventDispatcher; $this->eventDispatcher = $eventDispatcher;
} }
``` ```
After: After:
```php ```php
public function __construct(EventDispatcherInterface $eventDispatcher) { public function __construct(EventDispatcherInterface $eventDispatcher) {
$this->eventDispatcher = LegacyEventDispatcherProxy::decorate($eventDispatcher); $this->eventDispatcher = LegacyEventDispatcherProxy::decorate($eventDispatcher);
} }
``` ```
* The `Event` class has been deprecated, use `Symfony\Contracts\EventDispatcher\Event` instead * The `Event` class has been deprecated, use `Symfony\Contracts\EventDispatcher\Event` instead
Filesystem Filesystem