1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 16:42:57 +00:00

Add deprecation notice for the event type hint rewrites, refs #5238

This commit is contained in:
Jordi Boggiano 2016-04-24 15:48:48 +01:00
parent aabe21d84d
commit a67b127a1a
2 changed files with 32 additions and 2 deletions

View file

@ -150,11 +150,13 @@ class MyClass
}
```
## Event classes
When an event is fired, your PHP callback receives as first argument a
`Composer\EventDispatcher\Event` object. This object has a `getName()` method
that lets you retrieve event name.
that lets you retrieve the event name.
Depending on the script types (see list above) you will get various event
Depending on the [script types](#event-names) you will get various event
subclasses containing various getters with relevant data and associated
objects: