Bernhard Schussek
|
7dbc09ed8b
[Form] Fixed reference handling in forms. Sometimes data wasn't written into the domain object, resulting in failed validation.
|
14 лет назад |
Bernhard Schussek
|
f51dafca3f
[Form] Fixed: "data_constructor" option is used even if "data_class" option is not set
|
14 лет назад |
Bernhard Schussek
|
5b95805340
[Form] Added option "data_constructor" to Form. When a Form is initialized with NULL, an object is automatically created using this constructor. If no constructor is given but the option "data_class" is set, an object of that class is created with the default constructor instead.
|
14 лет назад |
Bernhard Schussek
|
09a50c3c55
[Form] Fixed: "by_reference" option is ignored if reading from/writing to an array
|
14 лет назад |
Bernhard Schussek
|
bd3e6c6b49
[Form] Fixed: Form::bind() throws an exception if form is anonymous
|
14 лет назад |
Bernhard Schussek
|
6ff4120784
[Form] Added Form option "by_reference" so that objects received from parent forms are modified by reference when this option is true (the default)
|
14 лет назад |
Bernhard Schussek
|
2276b98fc1
[Form] Fixed: ChoiceFields never validated
|
14 лет назад |
Bernhard Schussek
|
39c148197f
[Form] Fixed form validation
|
14 лет назад |
Bernhard Schussek
|
7c9c7af863
[Form] Fixed arrays not to be passed to the validator
|
14 лет назад |
Bernhard Schussek
|
5e3fab214e
[Form] The form is now validated seperatedly from its data. The form is validated in group "Default", the data in the group set in option "validation_groups"
|
14 лет назад |
Bernhard Schussek
|
4f0283a508
[Form] Removed Form::isBound(). Form::bind() is only a shortcut method now, use Form::isSubmitted() if you want to find out whether a form was submitted.
|
14 лет назад |
Bernhard Schussek
|
628a4d1fd8
[Form] Refactored validation logic into validate() method. Removed bindGlobals() to reduce API clutter
|
14 лет назад |
Jeremy Mikola
|
4e0db56810
[Form] Fix getValidator() to reference the "validator" option instead of property
|
14 лет назад |
Bernhard Schussek
|
fb1f99137d
[Form] Changed semantics of a "bound" form
|
14 лет назад |
Bernhard Schussek
|
c468db5c5b
[Form] Merged classes FieldGroup and Form for simplicity
|
14 лет назад |
Bernhard Schussek
|
4fcb98547c
[Form] Simplified Form::bind(), added convenience methods Form::bindRequest() and Form::bindGlobals()
|
14 лет назад |
Bernhard Schussek
|
7848a7ca63
[Form] Refactored CSRF implementation to be reusable and to work correctly with the session service
|
14 лет назад |
Bernhard Schussek
|
8f8f53d631
[Form][FrameworkBundle] Implemented FormFactory and added it to the DI container
|
14 лет назад |
Dominique Bongiraud
|
64fb94c725
normalized license messages in PHP files
|
14 лет назад |
Bernhard Schussek
|
48af2fc86e
[Form][FrameworkBundle][HttpFoundation] The session is now automatically started when a form is CSRF protected
|
14 лет назад |
Bernhard Schussek
|
78b69876d4
[Form] Locale can now only be set statically before creating a form/field, otherwise we have too many problems updating a field's state when the locale is changed
|
14 лет назад |
Bernhard Schussek
|
7c557d0d6e
[Form] Made and parameter in the constructor optional
|
14 лет назад |
Fabien Potencier
|
1e983a6115
moved static Form configuration to a new class (avoid loading 7 classes just to enable CSRF -- even when no form is present in the page)
|
14 лет назад |
Jordi Boggiano
|
0bdb271608
[Form] Added parent calls to all configure() methods of Fields and Transformers
|
14 лет назад |
Jordi Boggiano
|
a198bbcf43
[Form] throw an exception if session_id() is empty when a csrf token is generated
|
14 лет назад |
Bernhard Schussek
|
a66d883afd
[Form] Removed CSRF setters because they have no effect once CSRF protection is enabled. Re-enable CSRF protection with the desired values instead
|
14 лет назад |
Fabien Potencier
|
2525998f6e
replaced form field rendering with plain templates
|
14 лет назад |
Fabien Potencier
|
a141c98917
[HttpFoundation] moved File Component into the HttpFoundation one
|
14 лет назад |
Fabien Potencier
|
bf82cf42dd
renamed Symfony\Components to Symfony\Component
|
14 лет назад |