Skip to content

Commit d25965a

Browse files
committed
Added caution notice about nested bundle configs
1 parent d7d3f7c commit d25965a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configuration.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ whenever a service/controller defines a ``$projectDir`` argument, use this:
876876
// pass this value to any $projectDir argument for any service
877877
// that's created in this file (including controller arguments)
878878
->bind('$projectDir', '%kernel.project_dir%');
879-
879+
880880
// ...
881881
};
882882
@@ -953,6 +953,12 @@ namespace ``Symfony\Config``::
953953
$security->accessControl(['path' => '^/admin', 'roles' => 'ROLE_ADMIN']);
954954
};
955955

956+
.. caution::
957+
958+
Note that nested configs (e.g. ``\Symfony\Config\Framework\CacheConfig``) cannot be used for
959+
partial bundle configuration and will not be autowired if you will try to specify it as
960+
argument type.
961+
956962
Keep Going!
957963
-----------
958964

0 commit comments

Comments
 (0)