38 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
Alexander M. Turek
79002e4e4c [Form] Add missing return types to interfaces 2023-02-17 09:38:29 +01:00
Christopher Hertel
2877c2cf1a add better docs for FormTypeExtensionInterface 2022-11-16 19:12:38 +01:00
Nicolas Grekas
da6358c634 Merge branch '4.4'
* 4.4:
  Remove unneeded phpdocs
2019-08-08 11:49:33 +02:00
Fabien Potencier
60d5d61f9e Remove unneeded phpdocs 2019-08-08 11:37:48 +02:00
Yonel Ceruto
455a2d81de Remove legacy code related to getExtendedType() method 2019-05-29 14:08:52 -04:00
Roland Franssen
dc59b1fbf6 [Form] Fix @method annotation 2018-10-19 12:21:43 +02:00
Christian Flothmann
07ed34a3cc simplify the form type extension registration 2018-10-08 23:29:09 +02:00
Nicolas Grekas
4b7aa22ded Merge branch '2.8' into 3.3
* 2.8:
  [DI] minor docblock fixes
2017-10-24 16:05:06 +02:00
Nicolas Grekas
33e9eec15b [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
Fabien Potencier
c5f81d767b Merge branch '2.8' into 3.0
* 2.8:
  fixed CS
  fixed form tests
  [Console] Fix formatting of SymfonyStyle::comment()
  [Form] fix post max size translation type extension for >= 2.8
  removed dots at the end of @param and @return
  fixed typo
2016-06-29 07:40:00 +02:00
Fabien Potencier
19154a6317 removed dots at the end of @param and @return 2016-06-28 08:24:06 +02:00
Nicolas Grekas
f43b788470 [3.0] Remove more deprecated interfaces in Form and Validator 2015-10-02 12:57:59 +02:00
Nicolas Grekas
38652ab2f2 [Form] Cleanup deprecation notices 2015-04-08 11:29:16 +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
Joseph Bielawski
36457711c8 [2.3][Form] Cleanup & fix phpdocs 2014-07-09 12:39:32 +02: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
Fabien Potencier
57d3b508c1 fixed CS 2012-07-09 14:54:20 +02:00
Bernhard Schussek
130ec5056c [Form] Fixed API docs and usage of FormBuilderInterface instead of FormBuilder 2012-05-25 12:34:16 +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
Bernhard Schussek
3fa45d3a3e [Form] Fixed option support in Form component 2012-04-11 16:37:42 +02:00
Fabien Potencier
66d0f1b6d4 fixed CS 2011-06-08 12:16:48 +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