diff --git a/configuration/environment_variables.rst b/configuration/environment_variables.rst index 11e23624eb5..50a2bd77daf 100644 --- a/configuration/environment_variables.rst +++ b/configuration/environment_variables.rst @@ -642,7 +642,7 @@ Symfony provides the following env var processors: http://symfony.com/schema/dic/services/services-1.0.xsd"> - + diff --git a/console/coloring.rst b/console/coloring.rst index b9a65cefc1b..2963fefa682 100644 --- a/console/coloring.rst +++ b/console/coloring.rst @@ -78,6 +78,7 @@ Displaying Clickable Links ~~~~~~~~~~~~~~~~~~~~~~~~~~ .. versionadded:: 4.3 + The feature to display clickable links was introduced in Symfony 4.3. Commands can use the special ```` tag to display links similar to the diff --git a/form/form_themes.rst b/form/form_themes.rst index 24bd5f4bd3c..ea3ccf9e366 100644 --- a/form/form_themes.rst +++ b/form/form_themes.rst @@ -289,9 +289,9 @@ field without having to :doc:`create a custom form type add('name', TextType::class, array( + $builder->add('name', TextType::class, [ 'block_prefix' => 'wrapped_text', - )); + ]); } .. versionadded:: 4.3 diff --git a/reference/constraints/Json.rst b/reference/constraints/Json.rst index 085fbe718c9..1fdcaaffd12 100644 --- a/reference/constraints/Json.rst +++ b/reference/constraints/Json.rst @@ -78,9 +78,9 @@ The ``Json`` constraint can be applied to a property or a "getter" method: public static function loadValidatorMetadata(ClassMetadata $metadata) { - $metadata->addPropertyConstraint('chapters', new Assert\Json(array( + $metadata->addPropertyConstraint('chapters', new Assert\Json([ 'message' => 'You\'ve entered an invalid Json.', - ))); + ])); } } diff --git a/reference/forms/types/button.rst b/reference/forms/types/button.rst index 5ce297acba8..d009b80235e 100644 --- a/reference/forms/types/button.rst +++ b/reference/forms/types/button.rst @@ -71,12 +71,10 @@ Given this translation message: .. code-block:: yaml - # translations/messages.en.yml + # translations/messages.en.yaml form.order.submit_to_company: 'Send an order to %company%' -You can specify the placeholder values as follows: - -.. code-block:: php +You can specify the placeholder values as follows:: use Symfony\Component\Form\Extension\Core\Type\ButtonType; // ... diff --git a/reference/forms/types/date.rst b/reference/forms/types/date.rst index 3dab11ba1e7..6e2be4140e3 100644 --- a/reference/forms/types/date.rst +++ b/reference/forms/types/date.rst @@ -171,7 +171,7 @@ values for the year, month and day fields:: .. include:: /reference/forms/types/options/date_format.rst.inc -.. versionadded:: 4.3 +.. deprecated:: 4.3 Using the ``format`` option when the ``html5`` option is enabled is deprecated since Symfony 4.3. diff --git a/reference/forms/types/options/attr_translation_parameters.rst.inc b/reference/forms/types/options/attr_translation_parameters.rst.inc index bda010127c6..98326ba4abe 100644 --- a/reference/forms/types/options/attr_translation_parameters.rst.inc +++ b/reference/forms/types/options/attr_translation_parameters.rst.inc @@ -16,23 +16,21 @@ Given this translation message: .. code-block:: yaml - # translations/messages.en.yml + # translations/messages.en.yaml form.order.id.placeholder: 'Enter unique identifier of the order to %company%' form.order.id.title: 'This will be the reference in communications with %company%' -You can specify the placeholder values as follows: +You can specify the placeholder values as follows:: -.. code-block:: php - - $builder->add('id', null, array( - 'attr' => array( + $builder->add('id', null, [ + 'attr' => [ 'placeholder' => 'form.order.id.placeholder', 'title' => 'form.order.id.title', - ), + ], 'attr_translation_parameters' => [ - '%company%' => 'ACME Inc.' - ] - )); + '%company%' => 'ACME Inc.', + ], + ]); The ``attr_translation_parameters`` option of children fields is merged with the same option of their parents, so children can reuse and/or override any of the diff --git a/reference/forms/types/options/help_translation_parameters.rst.inc b/reference/forms/types/options/help_translation_parameters.rst.inc index 44723597127..4294fb2b185 100644 --- a/reference/forms/types/options/help_translation_parameters.rst.inc +++ b/reference/forms/types/options/help_translation_parameters.rst.inc @@ -15,19 +15,17 @@ Given this translation message: .. code-block:: yaml - # translations/messages.en.yml + # translations/messages.en.yaml form.order.id.help: 'This will be the reference in communications with %company%' -You can specify the placeholder values as follows: +You can specify the placeholder values as follows:: -.. code-block:: php - - $builder->add('id', null, array( + $builder->add('id', null, [ 'help' => 'form.order.id.help', 'help_translation_parameters' => [ - '%company%' => 'ACME Inc.' - ] - )); + '%company%' => 'ACME Inc.', + ], + ]); The ``help_translation_parameters`` option of children fields is merged with the same option of their parents, so children can reuse and/or override any of the diff --git a/reference/forms/types/options/label_translation_parameters.rst.inc b/reference/forms/types/options/label_translation_parameters.rst.inc index f7903c5a473..443c6706f14 100644 --- a/reference/forms/types/options/label_translation_parameters.rst.inc +++ b/reference/forms/types/options/label_translation_parameters.rst.inc @@ -15,19 +15,17 @@ Given this translation message: .. code-block:: yaml - # translations/messages.en.yml + # translations/messages.en.yaml form.order.id: 'Identifier of the order to %company%' -You can specify the placeholder values as follows: +You can specify the placeholder values as follows:: -.. code-block:: php - - $builder->add('id', null, array( + $builder->add('id', null, [ 'label' => 'form.order.id', 'label_translation_parameters' => [ - '%company%' => 'ACME Inc.' - ] - )); + '%company%' => 'ACME Inc.', + ], + ]); The ``label_translation_parameters`` option of children fields is merged with the same option of their parents, so children can reuse and/or override any of diff --git a/reference/forms/types/reset.rst b/reference/forms/types/reset.rst index a4b7642b5a6..a9639e03bc7 100644 --- a/reference/forms/types/reset.rst +++ b/reference/forms/types/reset.rst @@ -61,22 +61,20 @@ Given this translation message: .. code-block:: yaml - # translations/messages.en.yml + # translations/messages.en.yaml form.order.reset: 'Reset an order to %company%' -You can specify the placeholder values as follows: - -.. code-block:: php +You can specify the placeholder values as follows:: use Symfony\Component\Form\Extension\Core\Type\ResetType; // ... - $builder->add('send', ResetType::class, array( + $builder->add('send', ResetType::class, [ 'label' => 'form.order.reset', - 'label_translation_parameters' => array( + 'label_translation_parameters' => [ '%company%' => 'ACME Inc.', - ), - )); + ], + ]); The ``label_translation_parameters`` option of buttons is merged with the same option of its parents, so buttons can reuse and/or override any of the parent diff --git a/reference/forms/types/submit.rst b/reference/forms/types/submit.rst index 7e1bac1bfb1..7a0672ea6c2 100644 --- a/reference/forms/types/submit.rst +++ b/reference/forms/types/submit.rst @@ -74,22 +74,20 @@ Given this translation message: .. code-block:: yaml - # translations/messages.en.yml + # translations/messages.en.yaml form.order.submit_to_company: 'Send an order to %company%' -You can specify the placeholder values as follows: - -.. code-block:: php +You can specify the placeholder values as follows:: use Symfony\Component\Form\Extension\Core\Type\SubmitType; // ... - $builder->add('send', SubmitType::class, array( + $builder->add('send', SubmitType::class, [ 'label' => 'form.order.submit_to_company', - 'label_translation_parameters' => array( + 'label_translation_parameters' => [ '%company%' => 'ACME Inc.', - ), - )); + ], + ]); The ``label_translation_parameters`` option of buttons is merged with the same option of its parents, so buttons can reuse and/or override any of the parent diff --git a/routing.rst b/routing.rst index 9ee80b95c4a..1b807ec3797 100644 --- a/routing.rst +++ b/routing.rst @@ -529,6 +529,7 @@ example to force the generation of ``/blog/1`` instead of ``/blog`` in the previous example) add the ``!`` character before the placeholder name: ``/blog/{!page}`` .. versionadded:: 4.3 + The feature to force the inclusion of default values in generated URLs was introduced in Symfony 4.3. diff --git a/service_container/alias_private.rst b/service_container/alias_private.rst index 3e88b991d33..13c9da828c7 100644 --- a/service_container/alias_private.rst +++ b/service_container/alias_private.rst @@ -175,7 +175,7 @@ or you decided not to maintain it anymore), you can deprecate its definition: - + The "%alias_id%" service alias is deprecated. Don't use it anymore.