Skip to content

Commit

Permalink
Merge pull request #2252 from johnkary/configSemantic
Browse files Browse the repository at this point in the history
[Cookbook][Bundles][Extension] Fix typos and improve readability
  • Loading branch information
weaverryan committed Feb 23, 2013
2 parents 124901d + fd9a696 commit 6010340
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cookbook/bundles/extension.rst
Expand Up @@ -21,7 +21,7 @@ as integration of other related components:
framework:
# ...
form: true
form: true
.. code-block:: xml
Expand All @@ -33,7 +33,7 @@ as integration of other related components:
$container->loadFromExtension('framework', array(
// ...
'form' => true,
'form' => true,
// ...
));
Expand Down Expand Up @@ -494,9 +494,10 @@ be output to the console in yaml.

As long as your bundle's configuration is located in the standard location
(``YourBundle\DependencyInjection\Configuration``) and does not have a
``__constructor()`` it will work automatically. If you have a something
different your ``Extension`` class will have to override the
``Extension::getConfiguration()`` method. Have it return an instance of your
``__construct()`` it will work automatically. If you have something
different, your ``Extension`` class must override the
:method:`Extension::getConfiguration() <Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension::getConfiguration>`
method and return an instance of your
``Configuration``.

Comments and examples can be added to your configuration nodes using the
Expand Down Expand Up @@ -548,9 +549,9 @@ When creating an extension, follow these simple conventions:
* The extension should provide an XSD schema.

If you follow these simple conventions, your extensions will be registered
automatically by Symfony2. If not, override the Bundle
:method:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build` method in
your bundle::
automatically by Symfony2. If not, override the
:method:`Bundle::build() <Symfony\\Component\\HttpKernel\\Bundle\\Bundle::build>`
method in your bundle::

// ...
use Acme\HelloBundle\DependencyInjection\UnconventionalExtensionClass;
Expand Down

0 comments on commit 6010340

Please sign in to comment.