Skip to content

Commit f104d72

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Form]: add a tip for `debug:form` command Mention how to run the commands that create the testing database Mention the Symfony packages that don't follow the components versioning
2 parents 30b7305 + 3cf253a commit f104d72

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

forms.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,22 @@ much easier to implement.
9696
There are tens of :doc:`form types provided by Symfony </reference/forms/types>`
9797
and you can also :doc:`create your own form types </form/create_custom_field_type>`.
9898

99+
.. tip::
100+
101+
You can use the ``debug:form`` to list all the available types, type
102+
extensions and type guessers in your application:
103+
104+
.. code-block:: terminal
105+
106+
$ php bin/console debug:form
107+
108+
# pass the form type FQCN to only show the options for that type, its parents and extensions.
109+
# For built-in types, you can pass the short classname instead of the FQCN
110+
$ php bin/console debug:form BirthdayType
111+
112+
# pass also an option name to only display the full definition of that option
113+
$ php bin/console debug:form BirthdayType label_attr
114+
99115
Building Forms
100116
--------------
101117

setup/upgrade_major.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ starting with ``symfony/`` to the new major version:
152152
+ "symfony/console": "6.0.*",
153153
"...": "...",
154154
155-
"...": "A few libraries starting with
156-
symfony/ follow their own versioning scheme. You
157-
do not need to update these versions: you can
155+
"...": "A few libraries starting with symfony/ follow their own
156+
versioning scheme (e.g. symfony/polyfill-[...],
157+
symfony/ux-[...], symfony/[...]-bundle).
158+
You do not need to update these versions: you can
158159
upgrade them independently whenever you want",
159160
"symfony/monolog-bundle": "^3.5",
160161
},

testing.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ After that, you can create the test database and all tables using:
358358
# create the tables/columns in the test database
359359
$ php bin/console --env=test doctrine:schema:create
360360
361+
.. tip::
362+
363+
You can run these commands to create the database during the
364+
:doc:`test bootstrap process <testing/bootstrap>`.
365+
361366
.. tip::
362367

363368
A common practice is to append the ``_test`` suffix to the original

0 commit comments

Comments
 (0)