Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6a55e20

Browse files
committed
Minor tweak
1 parent 9b9535d commit 6a55e20

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

configuration.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -919,16 +919,20 @@ parameters at once by type-hinting any of its constructor arguments with the
919919
Using PHP ConfigBuilders
920920
------------------------
921921

922-
Writing PHP config is sometimes difficult because you end up with large nested arrays
923-
and you have no help from your favorite IDE. A way to address this is to use "ConfigBuilders".
924-
They are objects that will help you build these arrays.
925-
926922
.. versionadded:: 5.3
927923

928-
The "ConfigBuilders" was added in Symfony 5.3 as an :doc:`experimental feature </contributing/code/experimental>`.
924+
The "ConfigBuilders" feature was introduced in Symfony 5.3 as an
925+
:doc:`experimental feature </contributing/code/experimental>`.
926+
927+
Writing PHP config is sometimes difficult because you end up with large nested
928+
arrays and you have no autocompletion help from your favorite IDE. A way to
929+
address this is to use "ConfigBuilders". They are objects that will help you
930+
build these arrays.
929931

930-
The ConfigBuilders are automatically generated in your ``kernel.build_dir`` for
931-
every bundle. By convention they all live in the namespace ``Symfony\Config``.::
932+
Symfony generates the ConfigBuilder classes automatically in the
933+
:ref:`kernel build directory <configuration-kernel-build-directory>` for all the
934+
bundles installed in your application. By convention they all live in the
935+
namespace ``Symfony\Config``::
932936

933937
// config/packages/security.php
934938
use Symfony\Config\SecurityConfig;

reference/configuration/kernel.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ the :method:`Symfony\\Component\\HttpKernel\\Kernel::getCacheDir` method. To
103103
change this setting, override the ``getCacheDir()`` method to return the correct
104104
cache directory.
105105

106+
.. _configuration-kernel-build-directory:
107+
106108
Build Directory
107109
~~~~~~~~~~~~~~~
108110

@@ -123,7 +125,6 @@ the :method:`Symfony\\Component\\HttpKernel\\Kernel::getBuildDir` method. To
123125
change this setting, override the ``getBuildDir()`` method to return the correct
124126
build directory.
125127

126-
127128
Log Directory
128129
~~~~~~~~~~~~~
129130

0 commit comments

Comments
 (0)