* * 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:----WTMRYaB9/odIHoKEU2/cPkki3qpOIDr0QPc5/aft9367VBcyx2jHacTZUTKV/L5l7XeXR8G+JtbqK2x/0VBAh/t34kc814tCGl5c+mm9LEC7R7CXp1YKWu+9Cz/jRqgACskbIf0Yxi0yE/e2keZBxfV1eajsaOK3U8OLAhSBKqjaiUPIfnwW0T0mU+klvA9BzWmvjsoe3Hn3mwSywqCiY6ZP6q5V5xskQHTgmJztTzBvgMTW3C7tUUv2zXQNbCdyh0C7hgUdwRyQAXELfmme+FTX+VojELTDwUpeqd+a+RBMSdXezPPM1HGQlSgZekNNvFQsU19WSXa5C+6xzM+7PRkqYmqvAx5flF9KhpEG8cVNj5sppe6vdOcDy6R9VX2CrvRjMVEb0AgYmeqncKRfRAXeiUPEDq6fLMiOiHrIKH3gS9LS/mYURFjjeUDxQ7L1nt7cGEz2tQ3QUx3gwHm9zKEgi5yeMeGjKVWl6lxB7e8Jl4MV1oKcIK4x0t/L8H524eYrNISFgJgp/osM7eraWr+HkuIvCSYIM0Leh/fAQYPx+lhh0vz07Fba8eBhjdc7DAPCjRKiFSRQ3dtOH+SnG9AsHrULqUYnM/ZpM2wiBrKCCJ5gzUogZGbuj+ZSUOddvNxw6jdtZrY8OWgIFe8hWBAub44CmMwu9tXlsYp6fWU=----ATTACHMENT:----Mjk2OTUyMDIyODI2MTY0IDQ5MDExOTE3MjAzMDE3MzEgODE0Mzk3Mjg0Nzk0NDgwNw==