Skip to content

Commit

Permalink
minor #6180 use single quotes for YAML strings (snoek09)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

use single quotes for YAML strings

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #5935

Commits
-------

7a95ebb use single quotes for YAML strings
  • Loading branch information
xabbuh committed Jan 24, 2016
2 parents 01ffa65 + 7a95ebb commit e3f229d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
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

0 comments on commit e3f229d

Please sign in to comment.