mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 01:56:26 +03:00
[Doc] Add missing doc about the "container" configurator
This commit is contained in:
committed by
Fabien Potencier
parent
dbea6b4af1
commit
c1011171c6
+20
@@ -104,6 +104,26 @@ The previous recipe is transformed into the following PHP code:
|
|||||||
'Symfony\Bundle\MonologBundle\MonologBundle' => ['all' => true],
|
'Symfony\Bundle\MonologBundle\MonologBundle' => ['all' => true],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
``container`` Configurator
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
Adds new container parameters in the ``container.yaml`` file by adding your parameters
|
||||||
|
in the ``container`` option.
|
||||||
|
|
||||||
|
This example creates a new ``locale`` container parameter with a default value in your
|
||||||
|
container:
|
||||||
|
|
||||||
|
.. code-block:: json
|
||||||
|
|
||||||
|
{
|
||||||
|
"container": {
|
||||||
|
"locale": "en"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
**Note:** For now, when you remove a package, container parameters that were added this
|
||||||
|
way are not removed.
|
||||||
|
|
||||||
``copy-from-package`` Configurator
|
``copy-from-package`` Configurator
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user