mirror of
https://github.com/symfony/recipes.git
synced 2026-09-12 15:46:37 +03:00
minor #76 [Doc] Add missing doc about the "container" configurator (Pierstoval)
This PR was squashed before being merged into the master branch (closes #76).
Discussion
----------
[Doc] Add missing doc about the "container" configurator
| Q | A
| ------------- | ---
| License | MIT
Was missing, not sure it was by purpose or not, but I propose to add it anyway, feel free to close it if you think it's not relevant.
Just about the bottom-note I added, it's because of [this "fixme" comment](https://github.com/symfony/flex/blob/master/src/Configurator/ContainerConfigurator.php#L27-L30), I'm not sure this warning should be present in the docs or if we shouldn't tell about it as the "fixme" might be solved one day 🤔
Commits
-------
c101117 [Doc] Add missing doc about the "container" configurator
This commit is contained in:
+20
@@ -104,6 +104,26 @@ The previous recipe is transformed into the following PHP code:
|
||||
'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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user