Skip to content

Commit 6010340

Browse files
committed
Merge pull request #2252 from johnkary/configSemantic
[Cookbook][Bundles][Extension] Fix typos and improve readability
2 parents 124901d + fd9a696 commit 6010340

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

cookbook/bundles/extension.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ as integration of other related components:
2121
2222
framework:
2323
# ...
24-
form: true
24+
form: true
2525
2626
.. code-block:: xml
2727
@@ -33,7 +33,7 @@ as integration of other related components:
3333
3434
$container->loadFromExtension('framework', array(
3535
// ...
36-
'form' => true,
36+
'form' => true,
3737
// ...
3838
));
3939
@@ -494,9 +494,10 @@ be output to the console in yaml.
494494

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

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

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

555556
// ...
556557
use Acme\HelloBundle\DependencyInjection\UnconventionalExtensionClass;

0 commit comments

Comments
 (0)