@@ -29,11 +29,11 @@ As well as loading configuration directly into the container as shown in
29
29
:doc: `/components/dependency_injection/introduction `, you can manage it by
30
30
registering extensions with the container. The first step in the compilation
31
31
process is to load configuration from any extension classes registered with
32
- the container. Unlike the configuration loaded directly they are only processed
32
+ the container. Unlike the configuration loaded directly, they are only processed
33
33
when the container is compiled. If your application is modular then extensions
34
34
allow each module to register and manage their own service configuration.
35
35
36
- The extensions must implement :class: `Symfony\\ Component\\ DependencyInjection\\ Extension\\ ExtensionInterface `
36
+ The extensions must implement :class: `Symfony\\ Component\\ DependencyInjection\\ Extension\\ ExtensionInterface `
37
37
and can be registered with the container with::
38
38
39
39
$container->registerExtension($extension);
@@ -171,6 +171,7 @@ the XML configuration::
171
171
}
172
172
173
173
..note::
174
+
174
175
XSD validation is optional, returning ``false`` from the ``getXsdValidationBasePath``
175
176
method will disable it.
176
177
@@ -192,13 +193,14 @@ The XML version of the config would then look like this:
192
193
</container >
193
194
194
195
..note::
196
+
195
197
In the Symfony2 full stack framework there is a base Extension class which
196
- implements these methods as well as a short cut method for processing the
198
+ implements these methods as well as a shortcut method for processing the
197
199
configuration. See :doc:`/cookbook/bundles/extension` for more details.
198
200
199
- The processed config value can now be added as container parameters as if they were
200
- listed in a ``parameters `` section of the config file but with merging multiple files
201
- and validation of the configuration thrown in ::
201
+ The processed config value can now be added as container parameters as if it were
202
+ listed in a ``parameters `` section of the config file but with the additional
203
+ benefit of merging multiple files and validation of the configuration::
202
204
203
205
public function load(array $configs, ContainerBuilder $container)
204
206
{
0 commit comments