From e9461caa9bc5de55b2ed7e782f01879f7e916d0f Mon Sep 17 00:00:00 2001 From: Henry Snoek Date: Wed, 9 Dec 2015 20:41:46 +0100 Subject: [PATCH] use single quotes for YAML strings --- best_practices/i18n.rst | 2 +- best_practices/templates.rst | 2 +- book/service_container.rst | 12 ++++++------ .../_imports-parameters-note.rst.inc | 2 +- components/dependency_injection/configurators.rst | 8 ++++---- components/dependency_injection/introduction.rst | 2 +- components/dependency_injection/parameters.rst | 2 +- components/dependency_injection/tags.rst | 4 ++-- components/dependency_injection/types.rst | 2 +- components/yaml/yaml_format.rst | 8 ++++---- cookbook/controller/service.rst | 2 +- cookbook/doctrine/mongodb_session_storage.rst | 6 +++--- cookbook/doctrine/pdo_session_storage.rst | 8 ++++---- cookbook/event_dispatcher/before_after_filters.rst | 4 ++-- cookbook/form/create_custom_field_type.rst | 2 +- cookbook/form/data_transformers.rst | 2 +- cookbook/form/dynamic_form_modification.rst | 2 +- cookbook/logging/channels_handlers.rst | 6 +++--- cookbook/logging/monolog.rst | 2 +- cookbook/logging/monolog_email.rst | 2 +- cookbook/profiler/matchers.rst | 2 +- cookbook/security/custom_authentication_provider.rst | 6 +++--- cookbook/security/remember_me.rst | 2 +- cookbook/security/securing_services.rst | 2 +- cookbook/service_container/scopes.rst | 4 ++-- cookbook/session/locale_sticky_session.rst | 4 ++-- cookbook/web_services/php_soap_extension.rst | 2 +- quick_tour/the_architecture.rst | 6 +++--- reference/configuration/assetic.rst | 8 ++++---- reference/configuration/doctrine.rst | 12 ++++++------ reference/configuration/framework.rst | 10 +++++----- reference/configuration/monolog.rst | 4 ++-- reference/configuration/swiftmailer.rst | 4 ++-- reference/configuration/twig.rst | 8 ++++---- reference/dic_tags.rst | 2 +- 35 files changed, 78 insertions(+), 78 deletions(-) diff --git a/best_practices/i18n.rst b/best_practices/i18n.rst index 54eb9d7b59f..6d87c608344 100644 --- a/best_practices/i18n.rst +++ b/best_practices/i18n.rst @@ -11,7 +11,7 @@ following ``translator`` configuration option and set your application locale: # app/config/config.yml framework: # ... - translator: { fallbacks: ["%locale%"] } + translator: { fallbacks: ['%locale%'] } # app/config/parameters.yml parameters: diff --git a/best_practices/templates.rst b/best_practices/templates.rst index 7e96b2d5bfb..20694029c37 100644 --- a/best_practices/templates.rst +++ b/best_practices/templates.rst @@ -156,7 +156,7 @@ name is irrelevant because you never use it in your own code): services: app.twig.app_extension: class: AppBundle\Twig\AppExtension - arguments: ["@markdown"] + arguments: ['@markdown'] public: false tags: - { name: twig.extension } diff --git a/book/service_container.rst b/book/service_container.rst index d1888ae052a..7be9d9d8d1f 100644 --- a/book/service_container.rst +++ b/book/service_container.rst @@ -209,7 +209,7 @@ straightforward. Parameters make defining services more organized and flexible: services: my_mailer: class: Acme\HelloBundle\Mailer - arguments: ["%my_mailer.transport%"] + arguments: ['%my_mailer.transport%'] .. code-block:: xml @@ -353,7 +353,7 @@ directories don't exist, create them. services: my_mailer: class: Acme\HelloBundle\Mailer - arguments: ["%my_mailer.transport%"] + arguments: ['%my_mailer.transport%'] .. code-block:: xml @@ -614,7 +614,7 @@ the service container gives you a much more appealing option: newsletter_manager: class: Acme\HelloBundle\Newsletter\NewsletterManager - arguments: ["@my_mailer"] + arguments: ['@my_mailer'] .. code-block:: xml @@ -700,7 +700,7 @@ Injecting the dependency by the setter method just needs a change of syntax: newsletter_manager: class: Acme\HelloBundle\Newsletter\NewsletterManager calls: - - [setMailer, ["@my_mailer"]] + - [setMailer, ['@my_mailer']] .. code-block:: xml @@ -762,7 +762,7 @@ it exists and do nothing if it doesn't: services: newsletter_manager: class: Acme\HelloBundle\Newsletter\NewsletterManager - arguments: ["@?my_mailer"] + arguments: ['@?my_mailer'] .. code-block:: xml @@ -872,7 +872,7 @@ Configuring the service container is easy: services: newsletter_manager: class: Acme\HelloBundle\Newsletter\NewsletterManager - arguments: ["@mailer", "@templating"] + arguments: ['@mailer', '@templating'] .. code-block:: xml diff --git a/components/dependency_injection/_imports-parameters-note.rst.inc b/components/dependency_injection/_imports-parameters-note.rst.inc index 4fd8b4005e0..dc9917d370e 100644 --- a/components/dependency_injection/_imports-parameters-note.rst.inc +++ b/components/dependency_injection/_imports-parameters-note.rst.inc @@ -10,7 +10,7 @@ # app/config/config.yml imports: - - { resource: "%kernel.root_dir%/parameters.yml" } + - { resource: '%kernel.root_dir%/parameters.yml' } .. code-block:: xml diff --git a/components/dependency_injection/configurators.rst b/components/dependency_injection/configurators.rst index 02ccf800af4..ae708216f27 100644 --- a/components/dependency_injection/configurators.rst +++ b/components/dependency_injection/configurators.rst @@ -139,20 +139,20 @@ The service config for the above classes would look something like this: email_configurator: class: EmailConfigurator - arguments: ["@email_formatter_manager"] + arguments: ['@email_formatter_manager'] # ... newsletter_manager: class: NewsletterManager calls: - [setMailer, ["@my_mailer"]] - configurator: ["@email_configurator", configure] + configurator: ['@email_configurator', configure] greeting_card_manager: class: GreetingCardManager calls: - - [setMailer, ["@my_mailer"]] - configurator: ["@email_configurator", configure] + - [setMailer, ['@my_mailer']] + configurator: ['@email_configurator', configure] .. code-block:: xml diff --git a/components/dependency_injection/introduction.rst b/components/dependency_injection/introduction.rst index 24f359cb884..b71ac5a926a 100644 --- a/components/dependency_injection/introduction.rst +++ b/components/dependency_injection/introduction.rst @@ -239,7 +239,7 @@ config files: services: mailer: class: Mailer - arguments: ["%mailer.transport%"] + arguments: ['%mailer.transport%'] newsletter_manager: class: NewsletterManager calls: diff --git a/components/dependency_injection/parameters.rst b/components/dependency_injection/parameters.rst index 604cf00f704..fd2e8f99f9d 100644 --- a/components/dependency_injection/parameters.rst +++ b/components/dependency_injection/parameters.rst @@ -151,7 +151,7 @@ the parameter value in one place if needed. .. code-block:: yaml - arguments: ["http://symfony.com/?foo=%%s&bar=%%d"] + arguments: ['http://symfony.com/?foo=%%s&bar=%%d'] .. code-block:: xml diff --git a/components/dependency_injection/tags.rst b/components/dependency_injection/tags.rst index 83deec45395..c92cebaf3f8 100644 --- a/components/dependency_injection/tags.rst +++ b/components/dependency_injection/tags.rst @@ -74,7 +74,7 @@ For example you may add the following transports as services: acme_mailer.transport.smtp: class: \Swift_SmtpTransport arguments: - - "%mailer_host%" + - '%mailer_host%' tags: - { name: acme_mailer.transport } acme_mailer.transport.sendmail: @@ -220,7 +220,7 @@ To answer this, change the service declaration: acme_mailer.transport.smtp: class: \Swift_SmtpTransport arguments: - - "%mailer_host%" + - '%mailer_host%' tags: - { name: acme_mailer.transport, alias: foo } acme_mailer.transport.sendmail: diff --git a/components/dependency_injection/types.rst b/components/dependency_injection/types.rst index 49126fd47aa..87dd02b87c7 100644 --- a/components/dependency_injection/types.rst +++ b/components/dependency_injection/types.rst @@ -43,7 +43,7 @@ service container configuration: # ... newsletter_manager: class: NewsletterManager - arguments: ["@my_mailer"] + arguments: ['@my_mailer'] .. code-block:: xml diff --git a/components/yaml/yaml_format.rst b/components/yaml/yaml_format.rst index b822a4f178b..841e93ffb1a 100644 --- a/components/yaml/yaml_format.rst +++ b/components/yaml/yaml_format.rst @@ -216,10 +216,10 @@ YAML uses indentation with one or more spaces to describe nested collections: .. code-block:: yaml - "symfony 1.0": + 'symfony 1.0': PHP: 5.0 Propel: 1.2 - "symfony 1.2": + 'symfony 1.2': PHP: 5.2 Propel: 1.3 @@ -279,8 +279,8 @@ You can mix and match styles to achieve a better readability: .. code-block:: yaml - "symfony 1.0": { PHP: 5.0, Propel: 1.2 } - "symfony 1.2": { PHP: 5.2, Propel: 1.3 } + 'symfony 1.0': { PHP: 5.0, Propel: 1.2 } + 'symfony 1.2': { PHP: 5.2, Propel: 1.3 } Comments -------- diff --git a/cookbook/controller/service.rst b/cookbook/controller/service.rst index 50f91425be5..f5daf236790 100644 --- a/cookbook/controller/service.rst +++ b/cookbook/controller/service.rst @@ -198,7 +198,7 @@ argument: services: app.hello_controller: class: AppBundle\Controller\HelloController - arguments: ["@templating"] + arguments: ['@templating'] .. code-block:: xml diff --git a/cookbook/doctrine/mongodb_session_storage.rst b/cookbook/doctrine/mongodb_session_storage.rst index 12f304a2754..7a2277cb2cc 100644 --- a/cookbook/doctrine/mongodb_session_storage.rst +++ b/cookbook/doctrine/mongodb_session_storage.rst @@ -30,12 +30,12 @@ need to change/add some parameters in the main configuration file: mongo_client: class: MongoClient # if using a username and password - arguments: ["mongodb://%mongodb_username%:%mongodb_password%@%mongodb_host%:27017"] + arguments: ['mongodb://%mongodb_username%:%mongodb_password%@%mongodb_host%:27017'] # if not using a username and password - arguments: ["mongodb://%mongodb_host%:27017"] + arguments: ['mongodb://%mongodb_host%:27017'] session.handler.mongo: class: Symfony\Component\HttpFoundation\Session\Storage\Handler\MongoDbSessionHandler - arguments: ["@mongo_client", "%mongo.session.options%"] + arguments: ['@mongo_client', '%mongo.session.options%'] .. code-block:: xml diff --git a/cookbook/doctrine/pdo_session_storage.rst b/cookbook/doctrine/pdo_session_storage.rst index 69d3dcd380b..6e3bcfda03d 100644 --- a/cookbook/doctrine/pdo_session_storage.rst +++ b/cookbook/doctrine/pdo_session_storage.rst @@ -49,7 +49,7 @@ To use it, you just need to change some parameters in the main configuration fil session.handler.pdo: class: Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler - arguments: ["@pdo", "%pdo.db_options%"] + arguments: ['@pdo', '%pdo.db_options%'] .. code-block:: xml @@ -152,9 +152,9 @@ of your project's data, you can use the connection settings from the pdo: class: PDO arguments: - - "mysql:host=%database_host%;port=%database_port%;dbname=%database_name%" - - "%database_user%" - - "%database_password%" + - 'mysql:host=%database_host%;port=%database_port%;dbname=%database_name%' + - '%database_user%' + - '%database_password%' .. code-block:: xml diff --git a/cookbook/event_dispatcher/before_after_filters.rst b/cookbook/event_dispatcher/before_after_filters.rst index 9420674a39e..2ae36f8a0de 100644 --- a/cookbook/event_dispatcher/before_after_filters.rst +++ b/cookbook/event_dispatcher/before_after_filters.rst @@ -157,7 +157,7 @@ your listener to be called just before any controller is executed. services: app.tokens.action_listener: class: AppBundle\EventListener\TokenListener - arguments: ["%tokens%"] + arguments: ['%tokens%'] tags: - { name: kernel.event_listener, event: kernel.controller, method: onKernelController } @@ -252,7 +252,7 @@ event: services: app.tokens.action_listener: class: AppBundle\EventListener\TokenListener - arguments: ["%tokens%"] + arguments: ['%tokens%'] tags: - { name: kernel.event_listener, event: kernel.controller, method: onKernelController } - { name: kernel.event_listener, event: kernel.response, method: onKernelResponse } diff --git a/cookbook/form/create_custom_field_type.rst b/cookbook/form/create_custom_field_type.rst index a41bfa980ba..88139dd9e67 100644 --- a/cookbook/form/create_custom_field_type.rst +++ b/cookbook/form/create_custom_field_type.rst @@ -306,7 +306,7 @@ the ``genders`` parameter value as the first argument to its to-be-created app.form.type.gender: class: AppBundle\Form\Type\GenderType arguments: - - "%genders%" + - '%genders%' tags: - { name: form.type, alias: gender } diff --git a/cookbook/form/data_transformers.rst b/cookbook/form/data_transformers.rst index a734ddfa9c5..5b65862b2f5 100644 --- a/cookbook/form/data_transformers.rst +++ b/cookbook/form/data_transformers.rst @@ -383,7 +383,7 @@ it's recognized as a custom field type: services: app.type.issue_selector: class: AppBundle\Form\IssueSelectorType - arguments: ["@doctrine.orm.entity_manager"] + arguments: ['@doctrine.orm.entity_manager'] tags: - { name: form.type, alias: issue_selector } diff --git a/cookbook/form/dynamic_form_modification.rst b/cookbook/form/dynamic_form_modification.rst index f79dbc403cd..006955d9d67 100644 --- a/cookbook/form/dynamic_form_modification.rst +++ b/cookbook/form/dynamic_form_modification.rst @@ -391,7 +391,7 @@ it with :ref:`dic-tags-form-type`. services: app.form.friend_message: class: AppBundle\Form\Type\FriendMessageFormType - arguments: ["@security.context"] + arguments: ['@security.context'] tags: - { name: form.type, alias: friend_message } diff --git a/cookbook/logging/channels_handlers.rst b/cookbook/logging/channels_handlers.rst index 7e83584526f..d123e0d489f 100644 --- a/cookbook/logging/channels_handlers.rst +++ b/cookbook/logging/channels_handlers.rst @@ -39,13 +39,13 @@ in all environments, or just ``config_prod.yml`` to happen only in ``prod``: # log all messages (since debug is the lowest level) level: debug type: stream - path: "%kernel.logs_dir%/security.log" + path: '%kernel.logs_dir%/security.log' channels: [security] # an example of *not* logging security channel messages for this handler main: # ... - # channels: ["!security"] + # channels: ['!security'] .. code-block:: xml @@ -139,7 +139,7 @@ need to tag your services: # app/config/config.yml monolog: - channels: ["foo", "bar"] + channels: ['foo', 'bar'] .. code-block:: xml diff --git a/cookbook/logging/monolog.rst b/cookbook/logging/monolog.rst index 7858fb33e9e..e3a25bd2a02 100644 --- a/cookbook/logging/monolog.rst +++ b/cookbook/logging/monolog.rst @@ -243,7 +243,7 @@ option of your handler to ``rotating_file``: handlers: main: type: rotating_file - path: "%kernel.logs_dir%/%kernel.environment%.log" + path: '%kernel.logs_dir%/%kernel.environment%.log' level: debug # max number of log files to keep # defaults to zero, which means infinite files diff --git a/cookbook/logging/monolog_email.rst b/cookbook/logging/monolog_email.rst index 8a90f6fe5b6..cf801de561b 100644 --- a/cookbook/logging/monolog_email.rst +++ b/cookbook/logging/monolog_email.rst @@ -162,7 +162,7 @@ get logged on the server as well as the emails being sent: members: [streamed, buffered] streamed: type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" + path: '%kernel.logs_dir%/%kernel.environment%.log' level: debug buffered: type: buffer diff --git a/cookbook/profiler/matchers.rst b/cookbook/profiler/matchers.rst index 0d7c1a4f2b8..3aa880befaf 100644 --- a/cookbook/profiler/matchers.rst +++ b/cookbook/profiler/matchers.rst @@ -113,7 +113,7 @@ won't use it directly: services: app.super_admin_matcher: class: AppBundle\Profiler\SuperAdminMatcher - arguments: ["@security.context"] + arguments: ['@security.context'] public: false .. code-block:: xml diff --git a/cookbook/security/custom_authentication_provider.rst b/cookbook/security/custom_authentication_provider.rst index dc5f3e4f8ba..47427e366d3 100644 --- a/cookbook/security/custom_authentication_provider.rst +++ b/cookbook/security/custom_authentication_provider.rst @@ -404,13 +404,13 @@ to service ids that do not exist yet: ``wsse.security.authentication.provider`` wsse.security.authentication.provider: class: AppBundle\Security\Authentication\Provider\WsseProvider arguments: - - "" # User Provider - - "%kernel.cache_dir%/security/nonces" + - '' # User Provider + - '%kernel.cache_dir%/security/nonces' public: false wsse.security.authentication.listener: class: AppBundle\Security\Firewall\WsseListener - arguments: ["@security.context", "@security.authentication.manager"] + arguments: ['@security.context', '@security.authentication.manager'] public: false .. code-block:: xml diff --git a/cookbook/security/remember_me.rst b/cookbook/security/remember_me.rst index 366a2959b95..4340bf235f3 100644 --- a/cookbook/security/remember_me.rst +++ b/cookbook/security/remember_me.rst @@ -22,7 +22,7 @@ the session lasts using a cookie with the ``remember_me`` firewall option: main: # ... remember_me: - key: "%secret%" + key: '%secret%' lifetime: 604800 # 1 week in seconds path: / # by default, the feature is enabled by checking a diff --git a/cookbook/security/securing_services.rst b/cookbook/security/securing_services.rst index 11c306b8f0e..5e24d942589 100644 --- a/cookbook/security/securing_services.rst +++ b/cookbook/security/securing_services.rst @@ -73,7 +73,7 @@ Then in your service configuration, you can inject the service: services: newsletter_manager: class: AppBundle\Newsletter\NewsletterManager - arguments: ["@security.context"] + arguments: ['@security.context'] .. code-block:: xml diff --git a/cookbook/service_container/scopes.rst b/cookbook/service_container/scopes.rst index 5ab227576dc..5aa114d50d1 100644 --- a/cookbook/service_container/scopes.rst +++ b/cookbook/service_container/scopes.rst @@ -230,7 +230,7 @@ Changing the scope of a service should be done in its definition: greeting_card_manager: class: AppBundle\Mail\GreetingCardManager scope: request - arguments: ["@request"] + arguments: ['@request'] .. code-block:: xml @@ -304,7 +304,7 @@ The service config for this class would look something like this: services: my_mailer: class: AppBundle\Mail\Mailer - arguments: ["@service_container"] + arguments: ['@service_container'] # scope: container can be omitted as it is the default .. code-block:: xml diff --git a/cookbook/session/locale_sticky_session.rst b/cookbook/session/locale_sticky_session.rst index 978ab473764..c44fa9e2544 100644 --- a/cookbook/session/locale_sticky_session.rst +++ b/cookbook/session/locale_sticky_session.rst @@ -69,7 +69,7 @@ Then register the listener: services: app.locale_listener: class: AppBundle\EventListener\LocaleListener - arguments: ["%kernel.default_locale%"] + arguments: ['%kernel.default_locale%'] tags: - { name: kernel.event_subscriber } @@ -171,7 +171,7 @@ Then register the listener: services: app.user_locale_listener: class: AppBundle\EventListener\UserLocaleListener - arguments: ["@session"] + arguments: ['@session'] tags: - { name: kernel.event_listener, event: security.interactive_login, method: onInteractiveLogin } diff --git a/cookbook/web_services/php_soap_extension.rst b/cookbook/web_services/php_soap_extension.rst index 98edaea09b9..de5a8a20dab 100644 --- a/cookbook/web_services/php_soap_extension.rst +++ b/cookbook/web_services/php_soap_extension.rst @@ -63,7 +63,7 @@ a ``HelloService`` object properly: services: hello_service: class: Acme\SoapBundle\Services\HelloService - arguments: ["@mailer"] + arguments: ['@mailer'] .. code-block:: xml diff --git a/quick_tour/the_architecture.rst b/quick_tour/the_architecture.rst index c0f008f0605..c878ce08c5c 100644 --- a/quick_tour/the_architecture.rst +++ b/quick_tour/the_architecture.rst @@ -146,8 +146,8 @@ or PHP. Have a look at this sample of the default Symfony configuration: framework: #esi: ~ - #translator: { fallbacks: ["%locale%"] } - secret: "%secret%" + #translator: { fallbacks: ['%locale%'] } + secret: '%secret%' router: resource: '%kernel.root_dir%/config/routing.yml' strict_requirements: '%kernel.debug%' @@ -191,7 +191,7 @@ the ``config_dev.yml`` file, which loads the main configuration (i.e. - { resource: config.yml } framework: - router: { resource: "%kernel.root_dir%/config/routing_dev.yml" } + router: { resource: '%kernel.root_dir%/config/routing_dev.yml' } profiler: { only_exceptions: false } web_profiler: diff --git a/reference/configuration/assetic.rst b/reference/configuration/assetic.rst index 3debe9a1fea..8c0ba8be7fc 100644 --- a/reference/configuration/assetic.rst +++ b/reference/configuration/assetic.rst @@ -12,12 +12,12 @@ Full Default Configuration .. code-block:: yaml assetic: - debug: "%kernel.debug%" + debug: '%kernel.debug%' use_controller: - enabled: "%kernel.debug%" + enabled: '%kernel.debug%' profiler: false - read_from: "%assetic.read_from%" - write_to: "%kernel.root_dir%/../web" + read_from: '%assetic.read_from%' + write_to: '%kernel.root_dir%/../web' java: /usr/bin/java node: /usr/bin/node ruby: /usr/bin/ruby diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index ab04e3fc2ce..d88b7c563cb 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -63,9 +63,9 @@ Full Default Configuration # the version of your database engine server_version: ~ - # when true, queries are logged to a "doctrine" monolog channel - logging: "%kernel.debug%" - profiling: "%kernel.debug%" + # when true, queries are logged to a 'doctrine' monolog channel + logging: '%kernel.debug%' + profiling: '%kernel.debug%' driver_class: ~ wrapper_class: ~ options: @@ -114,7 +114,7 @@ Full Default Configuration orm: default_entity_manager: ~ auto_generate_proxy_classes: false - proxy_dir: "%kernel.cache_dir%/doctrine/orm/Proxies" + proxy_dir: '%kernel.cache_dir%/doctrine/orm/Proxies' proxy_namespace: Proxies # search for the "ResolveTargetEntityListener" class for a cookbook about this resolve_target_entities: [] @@ -392,13 +392,13 @@ The following block shows all possible configuration keys: # the DBAL driverOptions option options: foo: bar - path: "%kernel.data_dir%/data.sqlite" + path: '%kernel.data_dir%/data.sqlite' memory: true unix_socket: /tmp/mysql.sock # the DBAL wrapperClass option wrapper_class: MyDoctrineDbalConnectionWrapper charset: UTF8 - logging: "%kernel.debug%" + logging: '%kernel.debug%' platform_service: MyOwnDatabasePlatformService server_version: 5.6 mapping_types: diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index edf47ae25fd..1e043cc254c 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -1475,7 +1475,7 @@ Full Default Configuration gc_divisor: ~ gc_probability: ~ gc_maxlifetime: ~ - save_path: "%kernel.cache_dir%/sessions" + save_path: '%kernel.cache_dir%/sessions' # serializer configuration serializer: @@ -1484,7 +1484,7 @@ Full Default Configuration # templating configuration templating: assets_version: ~ - assets_version_format: "%%s?%%s" + assets_version_format: '%%s?%%s' hinclude_default_template: ~ form: resources: @@ -1505,7 +1505,7 @@ Full Default Configuration # Prototype name: version: ~ - version_format: "%%s?%%s" + version_format: '%%s?%%s' base_urls: http: [] ssl: [] @@ -1525,8 +1525,8 @@ Full Default Configuration # annotation configuration annotations: cache: file - file_cache_dir: "%kernel.cache_dir%/annotations" - debug: "%kernel.debug%" + file_cache_dir: '%kernel.cache_dir%/annotations' + debug: '%kernel.debug%' .. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2 .. _`HTTP Host header attacks`: http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html diff --git a/reference/configuration/monolog.rst b/reference/configuration/monolog.rst index 472a2205225..6eeba5f0967 100644 --- a/reference/configuration/monolog.rst +++ b/reference/configuration/monolog.rst @@ -32,7 +32,7 @@ Full Default Configuration # Default options and values for some "my_custom_handler" # Note: many of these options are specific to the "type". - # For example, the "service" type doesn't use any options + # For example, the 'service' type doesn't use any options # except id and channels my_custom_handler: type: ~ # Required @@ -40,7 +40,7 @@ Full Default Configuration priority: 0 level: DEBUG bubble: true - path: "%kernel.logs_dir%/%kernel.environment%.log" + path: '%kernel.logs_dir%/%kernel.environment%.log' ident: false facility: user max_files: 0 diff --git a/reference/configuration/swiftmailer.rst b/reference/configuration/swiftmailer.rst index 3c0e9f938a1..2834cd45190 100644 --- a/reference/configuration/swiftmailer.rst +++ b/reference/configuration/swiftmailer.rst @@ -201,14 +201,14 @@ Full Default Configuration auth_mode: ~ spool: type: file - path: "%kernel.cache_dir%/swiftmailer/spool" + path: '%kernel.cache_dir%/swiftmailer/spool' sender_address: ~ antiflood: threshold: 99 sleep: 0 delivery_address: ~ disable_delivery: ~ - logging: "%kernel.debug%" + logging: '%kernel.debug%' .. code-block:: xml diff --git a/reference/configuration/twig.rst b/reference/configuration/twig.rst index f06ac5a751d..15c1170299a 100644 --- a/reference/configuration/twig.rst +++ b/reference/configuration/twig.rst @@ -38,14 +38,14 @@ TwigBundle Configuration ("twig") autoescape_service: ~ # Example: '@my_service' autoescape_service_method: ~ # use in combination with autoescape_service option base_template_class: ~ # Example: Twig_Template - cache: "%kernel.cache_dir%/twig" - charset: "%kernel.charset%" - debug: "%kernel.debug%" + cache: '%kernel.cache_dir%/twig' + charset: '%kernel.charset%' + debug: '%kernel.debug%' strict_variables: ~ auto_reload: ~ optimizations: ~ paths: - "%kernel.root_dir%/../vendor/acme/foo-bar/templates": foo_bar + '%kernel.root_dir%/../vendor/acme/foo-bar/templates': foo_bar .. code-block:: xml diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index d592d051f73..0e7aa41e7e9 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -576,7 +576,7 @@ channel when injecting the logger in a service. services: my_service: class: Fully\Qualified\Loader\Class\Name - arguments: ["@logger"] + arguments: ['@logger'] tags: - { name: monolog.logger, channel: acme }