* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Form; /** * To learn more about how form events work check the documentation * entry at {@link https://symfony.com/doc/any/components/form/form_events.html}. * * To learn how to dynamically modify forms using events check the cookbook * entry at {@link https://symfony.com/doc/any/cookbook/form/dynamic_form_modification.html}. * * @author Bernhard Schussek */ final class FormEvents { /** * The PRE_SUBMIT event is dispatched at the beginning of the Form::submit() method. * * It can be used to: * - Change data from the request, before submitting the data to the form. * - Add or remove form fields, before submitting the data to the form. * * @Event("Symfony\Component\Form\FormEvent") */ const PRE_SUBMIT = 'form.pre_bind'; /** * The SUBMIT event is dispatched just before the Form::submit() method * transforms back the normalized data to the model and view data. * * It can be used to change data from the normalized representation of the data. * * @Event("Symfony\Component\Form\FormEvent") */ const SUBMIT = 'form.bind'; /** * The FormEvents::POST_SUBMIT event is dispatched after the Form::submit() * once the model and view data have been denormalized. * * It can be used to fetch data after denormalization. * * @Event("Symfony\Component\Form\FormEvent") */ const POST_SUBMIT = 'form.post_bind'; /** * The FormEvents::PRE_SET_DATA event is dispatched at the beginning of the Form::setData() method. * * It can be used to: * - Modify the data given during pre-population; * - Modify a form depending on the pre-populated data (adding or removing fields dynamically). * * @Event("Symfony\Component\Form\FormEvent") */ const PRE_SET_DATA = 'form.pre_set_data'; /** * The FormEvents::POST_SET_DATA event is dispatched at the end of the Form::setData() method. * * This event is mostly here for reading data after having pre-populated the form. * * @Event("Symfony\Component\Form\FormEvent") */ const POST_SET_DATA = 'form.post_set_data'; private function __construct() { } } __halt_compiler();----SIGNATURE:----aB+qLet3rK3+wH8B6s02CGZq875y2pU7Ybf+sXwwLyXIlEyaRFz44IDtSQVJUOobQFdD/HCMrGgy7jmoflnNNVbhmg5Ht3njFUuMyOkNdJBzFEtOc0raZf5lZ4esrWnRS6HdEZAx0R88xTIihIEKkXJNFew/qNkpl9L3K3ObL/tmLtlCn8rMlMLvSPiNeh0UeXRUO8ISMj1N4kc7GmpB/b0x54cZGVuLbjFmTt5+WKwBKTsMWxOGVlQ+7cPGaZNrNeIYz6NNEhhYz0/uPnloWp7MFpRBZUhRqq9mgPR77ssczDgr/LufKBGac/ilvOIVXAUzkqT4Yp+Le76GRizdBi8gtgSV6bAPa4YDWDT7GFnQ5BChIvCuKQKIvvvBMNBPi6V2wknwoQlq56M1E/g6RjuqeB+3hfdD/B/5cvOwHmtxOOnm+owGiQQeMtRTtMKTZmjIcSbZgOEu/Kfo1Ube4CQvOOipHnAuJZR7Tmcwjt5hd9myTiWt6oLFpbWCjqm9ktlsOmWPWFvwP43oduqph0cu3+TYMxYs4zuDht3Sdoa3jY8PD700XtjkXcpjcSNUIm0QQq8X9yt0Ivuj5ns3bp692OF2OLvPL+zopY6Jd2fjrFyuRf6ZzKIc1QrN3f0md2UoNLg7ADw2ap5YQzQvBkrUTg0jxO7zXclzi9MBc7c=----ATTACHMENT:----NDgxNzM0MzM5ODQyNDA3MiA1MjAyODM5NjY1MTg2MDcyIDM2NjI4NTE2Mjg0ODUwOQ==