symfony/symfony-docs — pull request #1990 by johnkary (2012-11-29 05:27:31+00:00)
Title: Remove reference to deprecated DataEvent and FilterDataEvent

[`DataEvent`](https://github.com/symfony/symfony/blob/2.1/src/Symfony/Component/Form/Event/DataEvent.php) and [`FilterDataEvent`](https://github.com/symfony/symfony/blob/2.1/src/Symfony/Component/Form/Event/FilterDataEvent.php) have been deprecated as of 2.1 and will be removed in 2.3.

This PR removes references to them in the cookbook article "How to Dynamically Generate Forms Using Form Events", and also fixes a missing use statement relative to using the new `FormEvent` class that was merged in a recent change to the typehint.

Should be applied to docs branch 2.1 and master.

:rocket: