Skip to content

Removex extra spaces on some YAML configs #7636

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
Mar 17, 2017
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
4 changes: 2 additions & 2 deletions best_practices/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
2 changes: 1 addition & 1 deletion controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

# ...

Expand Down
8 changes: 4 additions & 4 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions security/voters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
6 changes: 3 additions & 3 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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']]

Expand Down
4 changes: 2 additions & 2 deletions service_container/expression_language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions service_container/import.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion service_container/optional_dependencies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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']]

Expand Down