From d00e1b9fee6ee375caf4a177615b2481a7deee87 Mon Sep 17 00:00:00 2001 From: Ahmed TAILOULOUTE Date: Wed, 15 Mar 2017 23:14:52 +0000 Subject: [PATCH] Remove extra spaces on some YAML configs --- best_practices/security.rst | 4 ++-- controller/error_pages.rst | 2 +- doctrine.rst | 8 ++++---- routing.rst | 8 ++++---- security/voters.rst | 4 ++-- service_container.rst | 6 +++--- service_container/expression_language.rst | 4 ++-- service_container/import.rst | 4 ++-- service_container/optional_dependencies.rst | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/best_practices/security.rst b/best_practices/security.rst index f49a4f5dcc4..cb5bc04b8a1 100644 --- a/best_practices/security.rst +++ b/best_practices/security.rst @@ -308,8 +308,8 @@ To enable the security voter in the application, define a new service: services: # ... post_voter: - class: AppBundle\Security\PostVoter - public: false + class: AppBundle\Security\PostVoter + public: false tags: - { name: security.voter } diff --git a/controller/error_pages.rst b/controller/error_pages.rst index 2a6bedb6df8..d2f79d04ebd 100644 --- a/controller/error_pages.rst +++ b/controller/error_pages.rst @@ -234,7 +234,7 @@ configuration option to point to it: # app/config/config.yml twig: - exception_controller: AppBundle:Exception:showException + exception_controller: AppBundle:Exception:showException .. code-block:: xml diff --git a/doctrine.rst b/doctrine.rst index edfdd01ca7c..5e44a7f0f54 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -44,10 +44,10 @@ information. By convention, this information is usually configured in an # app/config/parameters.yml parameters: - database_host: localhost - database_name: test_project - database_user: root - database_password: password + database_host: localhost + database_name: test_project + database_user: root + database_password: password # ... diff --git a/routing.rst b/routing.rst index aa023ba84f6..8beadc8e045 100644 --- a/routing.rst +++ b/routing.rst @@ -72,12 +72,12 @@ The route is simple: # app/config/routing.yml blog_list: - path: /blog - defaults: { _controller: AppBundle:Blog:list } + path: /blog + defaults: { _controller: AppBundle:Blog:list } blog_show: - path: /blog/{slug} - defaults: { _controller: AppBundle:Blog:show } + path: /blog/{slug} + defaults: { _controller: AppBundle:Blog:show } .. code-block:: xml diff --git a/security/voters.rst b/security/voters.rst index 4016535ad96..b74c6fe615f 100644 --- a/security/voters.rst +++ b/security/voters.rst @@ -160,8 +160,8 @@ and tag it with ``security.voter``: # app/config/services.yml services: security.access.post_voter: - class: AppBundle\Security\PostVoter - public: false + class: AppBundle\Security\PostVoter + public: false tags: - { name: security.voter } diff --git a/service_container.rst b/service_container.rst index d97d2ad5b26..a78cc69f011 100644 --- a/service_container.rst +++ b/service_container.rst @@ -172,8 +172,8 @@ straightforward. Parameters make defining services more organized and flexible: services: app.mailer: - class: AppBundle\Mailer - arguments: ['%app.mailer.transport%'] + class: AppBundle\Mailer + arguments: ['%app.mailer.transport%'] .. code-block:: xml @@ -409,7 +409,7 @@ Injecting the dependency by the setter method just needs a change of syntax: # ... app.newsletter_manager: - class: AppBundle\Newsletter\NewsletterManager + class: AppBundle\Newsletter\NewsletterManager calls: - [setMailer, ['@app.mailer']] diff --git a/service_container/expression_language.rst b/service_container/expression_language.rst index 8184c8166b9..1b66fd6c672 100644 --- a/service_container/expression_language.rst +++ b/service_container/expression_language.rst @@ -27,8 +27,8 @@ of the new ``mailer_configuration`` service? One way is to use an expression: # app/config/config.yml services: my_mailer: - class: AppBundle\Mailer - arguments: ["@=service('mailer_configuration').getMailerMethod()"] + class: AppBundle\Mailer + arguments: ["@=service('mailer_configuration').getMailerMethod()"] .. code-block:: xml diff --git a/service_container/import.rst b/service_container/import.rst index 04839945117..28e1fc10196 100644 --- a/service_container/import.rst +++ b/service_container/import.rst @@ -49,8 +49,8 @@ service files: services: app.mailer: - class: AppBundle\Mailer - arguments: ['%app.mailer.transport%'] + class: AppBundle\Mailer + arguments: ['%app.mailer.transport%'] .. code-block:: xml diff --git a/service_container/optional_dependencies.rst b/service_container/optional_dependencies.rst index 5bc9e9b2ec3..a5525b5dbb1 100644 --- a/service_container/optional_dependencies.rst +++ b/service_container/optional_dependencies.rst @@ -76,7 +76,7 @@ call if the service exists and remove the method call if it does not: # app/config/services.yml services: app.newsletter_manager: - class: AppBundle\Newsletter\NewsletterManager + class: AppBundle\Newsletter\NewsletterManager calls: - [setMailer, ['@?app.mailer']]