Skip to content

Commit 86a24ba

Browse files
committed
Wrap all yml strings containing "@" with quotes in order to render the
syntax highlighting correctly
1 parent 11b63e3 commit 86a24ba

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

book/service_container.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ the service container gives you a much more appealing option:
599599
# ...
600600
newsletter_manager:
601601
class: "%newsletter_manager.class%"
602-
arguments: [@my_mailer]
602+
arguments: ["@my_mailer"]
603603
604604
.. code-block:: xml
605605
@@ -757,7 +757,7 @@ it exists and do nothing if it doesn't:
757757
services:
758758
newsletter_manager:
759759
class: "%newsletter_manager.class%"
760-
arguments: [@?my_mailer]
760+
arguments: ["@?my_mailer"]
761761
762762
.. code-block:: xml
763763
@@ -862,7 +862,7 @@ Configuring the service container is easy:
862862
services:
863863
newsletter_manager:
864864
class: "%newsletter_manager.class%"
865-
arguments: [@mailer, @templating]
865+
arguments: ["@mailer", "@templating"]
866866
867867
.. code-block:: xml
868868

components/dependency_injection/types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ service container configuration:
4343
# ...
4444
newsletter_manager:
4545
class: NewsletterManager
46-
arguments: [@my_mailer]
46+
arguments: ["@my_mailer"]
4747
4848
.. code-block:: xml
4949

cookbook/configuration/pdo_session_storage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ configuration format of your choice):
4141
4242
session.storage.pdo:
4343
class: Symfony\Component\HttpFoundation\SessionStorage\PdoSessionStorage
44-
arguments: [@pdo, %session.storage.options%, %pdo.db_options%]
44+
arguments: ["@pdo", %session.storage.options%, %pdo.db_options%]
4545
4646
.. code-block:: xml
4747

cookbook/security/custom_authentication_provider.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ to service ids that do not exist yet: ``wsse.security.authentication.provider``
365365
366366
wsse.security.authentication.listener:
367367
class: Acme\DemoBundle\Security\Firewall\WsseListener
368-
arguments: [@security.context, @security.authentication.manager]
368+
arguments: ["@security.context", "@security.authentication.manager"]
369369
370370
371371
.. code-block:: xml

cookbook/security/securing_services.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Then in your service configuration, you can inject the service:
8080
services:
8181
newsletter_manager:
8282
class: "%newsletter_manager.class%"
83-
arguments: [@security.context]
83+
arguments: ["@security.context"]
8484
8585
.. code-block:: xml
8686

cookbook/security/voters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ and tag it as a "security.voter":
114114
services:
115115
security.access.blacklist_voter:
116116
class: Acme\DemoBundle\Security\Authorization\Voter\ClientIpVoter
117-
arguments: [@service_container, [123.123.123.123, 171.171.171.171]]
117+
arguments: ["@service_container", [123.123.123.123, 171.171.171.171]]
118118
public: false
119119
tags:
120120
- { name: security.voter }

cookbook/web_services/php_soap_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ a ``HelloService`` object properly:
6262
services:
6363
hello_service:
6464
class: Acme\SoapBundle\Services\HelloService
65-
arguments: [@mailer]
65+
arguments: ["@mailer"]
6666
6767
.. code-block:: xml
6868

reference/dic_tags.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ channel when injecting the logger in a service.
309309
services:
310310
my_service:
311311
class: Fully\Qualified\Loader\Class\Name
312-
arguments: [@logger]
312+
arguments: ["@logger"]
313313
tags:
314314
- { name: monolog.logger, channel: acme }
315315

0 commit comments

Comments
 (0)