31 Commits

Author SHA1 Message Date
Nicolas Grekas
9e219122ae Revert "minor #61697 [Form] Add better type information using PHPDoc (azjezz)"
This reverts commit 615b0e972a52935a853b14881954aef3ecf5ef82, reversing
changes made to 4f4a40aab22068f76b39e90181de203c869a95f3.
2025-09-18 13:45:49 +02:00
azjezz
acad9a3622 chore(form): add better type information using phpdoc
Signed-off-by: azjezz <azjezz@protonmail.com>
2025-09-09 08:28:44 +01:00
Dariusz Ruminski
d131e439bb chore: CS fixes 2024-06-24 18:01:36 +02:00
Christian Flothmann
a6f6ed83d9 Merge branch '6.4' into 7.0
* 6.4: (35 commits)
  fix tests
  [DomCrawler][FrameworkBundle] Add `assertAnySelectorText*`
  fix tests
  [SecurityBundle] Add `$badges` argument to `Security::login`
  [FrameworkBundle] Support APP_BUILD_DIR
  [Scheduler] Add --all to debug:schedule
  [Cache] minor cleanup
  [HttpFoundation] Use Symfony exception for request unexpected values
  [Scheduler] Display friendly dates in debug:schedule
  [RemoteEvent][Webhook] Add Brevo support
  [Webhook][RemoteEvent] Add Mailjet support.
  fix typo
  fix minimum required HttpKernel component version
  fix tests
  Remove remaining experimental classes
  [RemoteEvent] Mark component as non experimental
  [Webhook] Mark component as non experimental
  [Process] Fix return type
  [Scheduler] Mark component as non experimental
  [AssetMapper] Mark component as non experimental
  ...
2023-08-04 13:30:50 +02:00
Jules Pietri
e3042b6844 [Form][DX] Use logical ordering for type and extension methods 2023-08-02 16:02:08 +02:00
Wouter de Jong
8266c81fce [Components] Convert to native return types 2023-07-05 15:06:06 +02:00
Wouter de Jong
f94d6c607d Add void return types 2023-02-13 14:18:23 +01:00
Grégoire Pineau
7dddf80606 [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Yonel Ceruto
455a2d81de Remove legacy code related to getExtendedType() method 2019-05-29 14:08:52 -04:00
Christian Flothmann
07ed34a3cc simplify the form type extension registration 2018-10-08 23:29:09 +02:00
Peter Rehm
e12d8d6389 Removed deprecated setDefaultOptions methods 2015-01-20 07:08:27 +01:00
Peter Rehm
a7346ebe49 Deprecated setDefaultOptions() in favor of configureOptions() 2015-01-16 10:30:42 +01:00
Fabien Potencier
6799dcd6f5 [Form] removed deprecated methods and classes 2013-03-23 11:48:19 +01:00
Christophe Coevoet
5412a4e398 Enhanced the triggering of E_USER_DEPRECATED errors
- Removed useless error handlers around FormEvent as the triggering has
  been fixed in it.
- Enhanced the triggering of deprecation errors for places where the BC
  method provide some user logic needing to be converted to a new way.
- Enhanced the deprecation messages to mention the replacement whenever
  possible.
2013-01-10 09:22:55 +01:00
Colin Frei
93152e5865 Move DeprecationErrorHandler to Test folder so it's not removed when building the zip file 2012-12-16 10:51:52 +01:00
Colin Frei
58d0921c42 [Form] Catch deprecation errors that are caused by BC code 2012-12-14 23:16:49 +01:00
Colin Frei
1041edfdf2 [Form] Trigger errors for deprecated methods in Form Component 2012-12-12 17:43:13 +01:00
Bernhard Schussek
84c9dfdab4 [Form] The properties of FormView are now accessed directly in order to increase performance (PHP +200ms, Twig +150ms) 2012-07-21 12:56:11 +02:00
Bernhard Schussek
05203e05d5 [Form] setDefaultOptions() is now coded against OptionsResolverInterface 2012-05-25 12:34:16 +02:00
Bernhard Schussek
5cc469d4ac [Form] Added FormBuilderInterface and FormViewInterface and cleaned up FormTypeInterface and FormTypeExtensionInterface 2012-05-25 12:28:17 +02:00
Bernhard Schussek
94b15eacff [Form] Options are now passed to buildView() and buildViewBottomUp() 2012-05-25 12:28:17 +02:00
Bernhard Schussek
f3d83a1f68 [Form] Changed getDefaultOptions() to setDefaultOptions(OptionsResolver $resolver) in FormTypeInterface 2012-05-25 12:28:17 +02:00
Tobias Schultze
fae4396a8a [Form] fix PhpDoc 2012-05-21 04:26:59 +02:00
Fabien Potencier
e5dde8cc08 fixed phpdoc @param alignment 2012-05-15 22:19:31 +02:00
William DURAND
4ffa08cf35 [Form] Fixed documentation, and the DateType (default options) 2012-04-11 17:26:46 +02:00
Bernhard Schussek
3fa45d3a3e [Form] Fixed option support in Form component 2012-04-11 16:37:42 +02:00
Victor Berchet
c4fffc4658 Merge branch 'master' into form-phpdoc-2 2011-05-15 19:24:09 +02:00
Bernhard Schussek
8c304fd36c [Form] Added FormTypeInterface::getAllowedOptionValues() to better validate passed options 2011-05-13 18:44:03 +02:00
Victor Berchet
35d9e23697 [Form] phpDoc 2011-05-13 11:00:04 +02:00
Fabien Potencier
66cc1f0065 fixed email 2011-04-24 13:59:46 +02:00
Bernhard Schussek
3e5fc0775d [Form] Added FormTypeExtensionInterface
With implementations of this interface, existing types can be amended.
The Csrf extension, for example, now contains a class FormTypeCsrfExtension
that adds CSRF capabilities to the "form" type.

To register new type extensions in the DIC, tag them with "form.type_extension"
and the name of the extended type as alias.
2011-04-22 19:24:38 +02:00