@@ -255,8 +255,8 @@ looks up the value of each parameter and uses it in the service definition.
255
255
.. note ::
256
256
257
257
If you want to use a string that starts with an ``@ `` sign as a parameter
258
- value (i.e. a very safe mailer password) in a yaml file, you need to escape
259
- it by adding another ``@ `` sign (This only applies to the YAML format):
258
+ value (i.e. a very safe mailer password) in a YAML file, you need to escape
259
+ it by adding another ``@ `` sign (this only applies to the YAML format):
260
260
261
261
.. code-block :: yaml
262
262
@@ -464,9 +464,9 @@ In other words, a service container extension configures the services for
464
464
a bundle on your behalf. And as you'll see in a moment, the extension provides
465
465
a sensible, high-level interface for configuring the bundle.
466
466
467
- Take the `` FrameworkBundle `` - the core Symfony2 framework bundle - as an
467
+ Take the FrameworkBundle - the core Symfony2 framework bundle - as an
468
468
example. The presence of the following code in your application configuration
469
- invokes the service container extension inside the `` FrameworkBundle `` :
469
+ invokes the service container extension inside the FrameworkBundle:
470
470
471
471
.. configuration-block ::
472
472
@@ -514,21 +514,21 @@ invokes the service container extension inside the ``FrameworkBundle``:
514
514
515
515
When the configuration is parsed, the container looks for an extension that
516
516
can handle the ``framework `` configuration directive. The extension in question,
517
- which lives in the `` FrameworkBundle `` , is invoked and the service configuration
518
- for the `` FrameworkBundle `` is loaded. If you remove the ``framework `` key
517
+ which lives in the FrameworkBundle, is invoked and the service configuration
518
+ for the FrameworkBundle is loaded. If you remove the ``framework `` key
519
519
from your application configuration file entirely, the core Symfony2 services
520
520
won't be loaded. The point is that you're in control: the Symfony2 framework
521
521
doesn't contain any magic or perform any actions that you don't have control
522
522
over.
523
523
524
524
Of course you can do much more than simply "activate" the service container
525
- extension of the `` FrameworkBundle `` . Each extension allows you to easily
525
+ extension of the FrameworkBundle. Each extension allows you to easily
526
526
customize the bundle, without worrying about how the internal services are
527
527
defined.
528
528
529
529
In this case, the extension allows you to customize the ``error_handler ``,
530
530
``csrf_protection ``, ``router `` configuration and much more. Internally,
531
- the `` FrameworkBundle `` uses the options specified here to define and configure
531
+ the FrameworkBundle uses the options specified here to define and configure
532
532
the services specific to it. The bundle takes care of creating all the necessary
533
533
``parameters `` and ``services `` for the service container, while still allowing
534
534
much of the configuration to be easily customized. As an added bonus, most
@@ -934,7 +934,7 @@ the framework.
934
934
Be sure that the ``swiftmailer `` entry appears in your application
935
935
configuration. As was mentioned in :ref: `service-container-extension-configuration `,
936
936
the ``swiftmailer `` key invokes the service extension from the
937
- `` SwiftmailerBundle `` , which registers the ``mailer `` service.
937
+ SwiftmailerBundle, which registers the ``mailer `` service.
938
938
939
939
.. _book-service-container-tags :
940
940
@@ -975,7 +975,7 @@ to be used for a specific purpose. Take the following example:
975
975
$definition->addTag('twig.extension');
976
976
$container->setDefinition('foo.twig.extension', $definition);
977
977
978
- The ``twig.extension `` tag is a special tag that the `` TwigBundle `` uses
978
+ The ``twig.extension `` tag is a special tag that the TwigBundle uses
979
979
during configuration. By giving the service this ``twig.extension `` tag,
980
980
the bundle knows that the ``foo.twig.extension `` service should be registered
981
981
as a Twig extension with Twig. In other words, Twig finds all services tagged
0 commit comments