Skip to content

Mentioned all the debug:* commands #10914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions form/create_custom_field_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ The goal of this field was to extend the choice type to enable selection of the
shipping type. This is achieved by fixing the ``choices`` to a list of available
shipping options.

.. tip::

Run the following command to verify that the form type was successfully
registered in the application:

.. code-block:: terminal

$ php bin/console debug:form

Creating a Template for the Field
---------------------------------

Expand Down
9 changes: 9 additions & 0 deletions form/create_form_type_extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ Once the extension is registered, any method that you've overridden (e.g.
``buildForm()``) will be called whenever *any* field of the given type
(``FileType``) is built.

.. tip::

Run the following command to verify that the form type extension was
successfully registered in the application:

.. code-block:: terminal

$ php bin/console debug:form

Adding the extension Business Logic
-----------------------------------

Expand Down
9 changes: 9 additions & 0 deletions form/type_guesser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,12 @@ and tag it with ``form.type_guesser``:
->getFormFactory();

// ...

.. tip::

Run the following command to verify that the form type guesser was
successfullyregistered in the application:

.. code-block:: terminal

$ php bin/console debug:form
2 changes: 2 additions & 0 deletions reference/forms/types/birthday.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ option defaults to 120 years ago to the current year.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\BirthdayType` |
+----------------------+-------------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Overridden Options
------------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ A simple, non-responsive button.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ButtonType` |
+----------------------+----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/checkbox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ if you want to handle submitted values like "0" or "false").
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Example Usage
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/choice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ To use this field, you must specify *either* ``choices`` or ``choice_loader`` op
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType` |
+-------------+------------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Example Usage
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ photos).
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CollectionType` |
+-------------+-----------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

.. note::

If you are working with a collection of Doctrine entities, pay special
Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/color.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ element.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ColorType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/country.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ the option manually, but then you should just use the ``ChoiceType`` directly.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CountryType` |
+-------------+-----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/currency.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\CurrencyType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ and can understand a number of different input formats via the `input`_ option.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\DateType` |
+----------------------+-----------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/dateinterval.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ or an array (see `input`_).
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\DateIntervalType` |
+----------------------+----------------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/datetime.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ the data can be a ``DateTime`` object, a string, a timestamp or an array.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\DateTimeType` |
+----------------------+-----------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The ``EmailType`` field is a text field that is rendered using the HTML5
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\EmailType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/entity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ objects from the database.
| Class | :class:`Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityType` |
+-------------+------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ The ``FileType`` represents a file input in your form.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FileType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ on all types for which ``FormType`` is the parent.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType` |
+-----------+--------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/hidden.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ The hidden type represents a hidden input field.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\HiddenType` |
+-------------+----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Overridden Options
------------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/integer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ integers. By default, all non-integer values (e.g. 6.78) will round down
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\IntegerType` |
+-------------+-----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LanguageType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/locale.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\LocaleType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/money.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ how the input and output of the data is handled.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\MoneyType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/number.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ that you want to use for your number.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\NumberType` |
+-------------+----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
9 changes: 9 additions & 0 deletions reference/forms/types/options/_debug_form.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. tip::

The full list of options defined and inherited by this form type is
available running this command in your app:

.. code-block:: terminal

# replace 'FooType' by the class name of your form type
$ php bin/console debug:form FooType
2 changes: 2 additions & 0 deletions reference/forms/types/password.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ The ``PasswordType`` field renders an input password text box.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\PasswordType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/percent.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ This field adds a percentage sign "``%``" after the input box.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\PercentType` |
+-------------+-----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/radio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ If you want to have a boolean field, use :doc:`CheckboxType </reference/forms/ty
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RadioType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/range.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ The ``RangeType`` field is a slider that is rendered using the HTML5
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RangeType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/repeated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ accuracy.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\RepeatedType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Example Usage
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/reset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ A button that resets all fields to their original values.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\ResetType` |
+----------------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Read about the input search field at `DiveIntoHTML5.info`_
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\SearchType` |
+-------------+----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/submit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ A submit button.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\SubmitType` |
+----------------------+----------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

The Submit button has an additional method
:method:`Symfony\\Component\\Form\\ClickableInterface::isClicked` that lets
you check whether this button was used to submit the form. This is especially
Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/tel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ to input phone numbers.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TelType` |
+-------------+---------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/text.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ The TextType field represents the most basic input text field.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType` |
+-------------+--------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Inherited Options
-----------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/textarea.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Renders a ``textarea`` HTML element.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TextareaType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

.. tip::

If you prefer to use an **advanced WYSIWYG editor** instead of a plain
Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/time.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ stored as a ``DateTime`` object, a string, a timestamp or an array.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TimeType` |
+----------------------+-----------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Basic Usage
-----------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/timezone.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ manually, but then you should just use the ``ChoiceType`` directly.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\TimezoneType` |
+-------------+------------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
2 changes: 2 additions & 0 deletions reference/forms/types/url.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ have a protocol.
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\UrlType` |
+-------------+-------------------------------------------------------------------+

.. include:: /reference/forms/types/options/_debug_form.rst.inc

Field Options
-------------

Expand Down
8 changes: 7 additions & 1 deletion setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ setup your project with the following commands:
$ composer install

You'll probably also need to customize your :ref:`.env <config-dot-env>` and do a
few other project-specific tasks (e.g. creating database schema).
few other project-specific tasks (e.g. creating database schema). When working
on a existing Symfony app for the first time, it may be useful to run this
command which displays information about the app:

.. code-block:: terminal

$ php bin/console about

Checking for Security Vulnerabilities
-------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion templating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ it:

Twig comes with a long list of `tags`_, `filters`_ and `functions`_ that are available
by default. You can even add your own *custom* filters, functions (and more) via
a :doc:`Twig Extension </templating/twig_extension>`.
a :doc:`Twig Extension </templating/twig_extension>`. Run the following command
to list them all:

.. code-block:: terminal

$ php bin/console debug:twig

Twig code will look similar to PHP code, with subtle, nice differences. The following
example uses a standard ``for`` tag and the ``cycle()`` function to print ten div tags,
Expand Down
Loading