Skip to content

Commit 60ef75a

Browse files
committed
[#1660] Minor tweaks to compilation section
1 parent e8ee4ed commit 60ef75a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

components/dependency_injection/compilation.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ As well as loading configuration directly into the container as shown in
2929
:doc:`/components/dependency_injection/introduction`, you can manage it by
3030
registering extensions with the container. The first step in the compilation
3131
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
3333
when the container is compiled. If your application is modular then extensions
3434
allow each module to register and manage their own service configuration.
3535

36-
The extensions must implement :class:`Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface`
36+
The extensions must implement :class:`Symfony\\Component\\DependencyInjection\\Extension\\ExtensionInterface`
3737
and can be registered with the container with::
3838

3939
$container->registerExtension($extension);
@@ -171,6 +171,7 @@ the XML configuration::
171171
}
172172

173173
..note::
174+
174175
XSD validation is optional, returning ``false`` from the ``getXsdValidationBasePath``
175176
method will disable it.
176177

@@ -192,13 +193,14 @@ The XML version of the config would then look like this:
192193
</container>
193194
194195
..note::
196+
195197
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
197199
configuration. See :doc:`/cookbook/bundles/extension` for more details.
198200

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::
202204

203205
public function load(array $configs, ContainerBuilder $container)
204206
{

0 commit comments

Comments
 (0)