mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Merge pull request #124 from symfony/container-services
This commit is contained in:
+4
-4
@@ -105,11 +105,11 @@ The previous recipe is transformed into the following PHP code:
|
||||
``container`` Configurator
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Adds new container parameters in the ``container.yaml`` file by adding your parameters
|
||||
in the ``container`` option.
|
||||
Adds new container parameters in the ``services.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:
|
||||
This example creates a new ``locale`` container parameter with a default value
|
||||
in your container:
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ final class Kernel extends BaseKernel
|
||||
if (is_dir($confDir.'/packages/'.$this->environment)) {
|
||||
$loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
|
||||
}
|
||||
$loader->load($confDir.'/container'.self::CONFIG_EXTS, 'glob');
|
||||
$loader->load($confDir.'/services'.self::CONFIG_EXTS, 'glob');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void
|
||||
|
||||
Reference in New Issue
Block a user