symfony/symfony — pull request #2612 by drak (2011-11-11 05:19:16+00:00)
Title: [EventDispatcher] Add event name to Event object

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes (added some more tests)
Fixes the following tickets: -
References the following tickets: #2572

Events should know their name just as in Sf1. Added getters and setter for `name` property which allows the event name to be set on dispatch. This additionally makes the event objects reusable if necessary and allows listeners to perform tasks according to the event name.

I've written tests for the Event object additionally as there were none. This PR is designed to be merged after #2572