Skip to content

use single quotes for YAML strings #6180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/dependency_injection/configurators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ The service config for the above classes would look something like this:
newsletter_manager:
class: NewsletterManager
calls:
- [setMailer, ["@my_mailer"]]
- [setMailer, ['@my_mailer']]
configurator: ['@email_configurator', configure]

greeting_card_manager:
Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ method in the previous example takes the ``templating`` service as an argument:
factory_service: newsletter_manager_factory
factory_method: createNewsletterManager
arguments:
- "@templating"
- '@templating'

.. code-block:: xml

Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ config files:
newsletter_manager:
class: NewsletterManager
calls:
- [setMailer, ["@mailer"]]
- [setMailer, ['@mailer']]

.. code-block:: xml

Expand Down
14 changes: 7 additions & 7 deletions components/dependency_injection/parentservices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ a parent for a service.
mail_manager:
abstract: true
calls:
- [setMailer, ["@my_mailer"]]
- [setEmailFormatter, ["@my_email_formatter"]]
- [setMailer, ['@my_mailer']]
- [setEmailFormatter, ['@my_email_formatter']]

newsletter_manager:
class: "NewsletterManager"
Expand Down Expand Up @@ -320,17 +320,17 @@ to the ``NewsletterManager`` class, the config would look like this:
mail_manager:
abstract: true
calls:
- [setMailer, ["@my_mailer"]]
- [setEmailFormatter, ["@my_email_formatter"]]
- [setMailer, ['@my_mailer']]
- [setEmailFormatter, ['@my_email_formatter']]

newsletter_manager:
class: "NewsletterManager"
class: 'NewsletterManager'
parent: mail_manager
calls:
- [setMailer, ["@my_alternative_mailer"]]
- [setMailer, ['@my_alternative_mailer']]

greeting_card_manager:
class: "GreetingCardManager"
class: 'GreetingCardManager'
parent: mail_manager

.. code-block:: xml
Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ that accepts the dependency::
newsletter_manager:
class: NewsletterManager
calls:
- [setMailer, ["@my_mailer"]]
- [setMailer, ['@my_mailer']]

.. code-block:: xml

Expand Down
6 changes: 3 additions & 3 deletions cookbook/logging/monolog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ using a processor.

monolog.processor.session_request:
class: AppBundle\SessionRequestProcessor
arguments: ["@session"]
arguments: ['@session']
tags:
- { name: monolog.processor, method: processRecord }

Expand Down Expand Up @@ -446,7 +446,7 @@ the ``monolog.processor`` tag:
services:
monolog.processor.session_request:
class: AppBundle\SessionRequestProcessor
arguments: ["@session"]
arguments: ['@session']
tags:
- { name: monolog.processor, method: processRecord, handler: main }

Expand Down Expand Up @@ -497,7 +497,7 @@ the ``monolog.processor`` tag:
services:
monolog.processor.session_request:
class: AppBundle\SessionRequestProcessor
arguments: ["@session"]
arguments: ['@session']
tags:
- { name: monolog.processor, method: processRecord, channel: main }

Expand Down
2 changes: 1 addition & 1 deletion cookbook/service_container/scopes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ your code. This should also be taken into account when declaring your service:
greeting_card_manager:
class: AppBundle\Mail\GreetingCardManager
calls:
- [setRequest, ["@?request="]]
- [setRequest, ['@?request=']]

.. code-block:: xml

Expand Down
2 changes: 1 addition & 1 deletion reference/configuration/twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TwigBundle Configuration ("twig")
globals:

# Examples:
foo: "@bar"
foo: '@bar'
pi: 3.14

# Example options, but the easiest use is as seen above
Expand Down