Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d00e1b9

Browse files
author
Ahmed TAILOULOUTE
committed
Remove extra spaces on some YAML configs
1 parent 613e5c4 commit d00e1b9

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

best_practices/security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ To enable the security voter in the application, define a new service:
308308
services:
309309
# ...
310310
post_voter:
311-
class: AppBundle\Security\PostVoter
312-
public: false
311+
class: AppBundle\Security\PostVoter
312+
public: false
313313
tags:
314314
- { name: security.voter }
315315

controller/error_pages.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ configuration option to point to it:
234234
235235
# app/config/config.yml
236236
twig:
237-
exception_controller: AppBundle:Exception:showException
237+
exception_controller: AppBundle:Exception:showException
238238
239239
.. code-block:: xml
240240

doctrine.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ information. By convention, this information is usually configured in an
4444
4545
# app/config/parameters.yml
4646
parameters:
47-
database_host: localhost
48-
database_name: test_project
49-
database_user: root
50-
database_password: password
47+
database_host: localhost
48+
database_name: test_project
49+
database_user: root
50+
database_password: password
5151
5252
# ...
5353

routing.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ The route is simple:
7272
7373
# app/config/routing.yml
7474
blog_list:
75-
path: /blog
76-
defaults: { _controller: AppBundle:Blog:list }
75+
path: /blog
76+
defaults: { _controller: AppBundle:Blog:list }
7777
7878
blog_show:
79-
path: /blog/{slug}
80-
defaults: { _controller: AppBundle:Blog:show }
79+
path: /blog/{slug}
80+
defaults: { _controller: AppBundle:Blog:show }
8181
8282
.. code-block:: xml
8383

security/voters.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ and tag it with ``security.voter``:
160160
# app/config/services.yml
161161
services:
162162
security.access.post_voter:
163-
class: AppBundle\Security\PostVoter
164-
public: false
163+
class: AppBundle\Security\PostVoter
164+
public: false
165165
tags:
166166
- { name: security.voter }
167167

service_container.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ straightforward. Parameters make defining services more organized and flexible:
172172
173173
services:
174174
app.mailer:
175-
class: AppBundle\Mailer
176-
arguments: ['%app.mailer.transport%']
175+
class: AppBundle\Mailer
176+
arguments: ['%app.mailer.transport%']
177177
178178
.. code-block:: xml
179179
@@ -409,7 +409,7 @@ Injecting the dependency by the setter method just needs a change of syntax:
409409
# ...
410410
411411
app.newsletter_manager:
412-
class: AppBundle\Newsletter\NewsletterManager
412+
class: AppBundle\Newsletter\NewsletterManager
413413
calls:
414414
- [setMailer, ['@app.mailer']]
415415

service_container/expression_language.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ of the new ``mailer_configuration`` service? One way is to use an expression:
2727
# app/config/config.yml
2828
services:
2929
my_mailer:
30-
class: AppBundle\Mailer
31-
arguments: ["@=service('mailer_configuration').getMailerMethod()"]
30+
class: AppBundle\Mailer
31+
arguments: ["@=service('mailer_configuration').getMailerMethod()"]
3232
3333
.. code-block:: xml
3434

service_container/import.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ service files:
4949
5050
services:
5151
app.mailer:
52-
class: AppBundle\Mailer
53-
arguments: ['%app.mailer.transport%']
52+
class: AppBundle\Mailer
53+
arguments: ['%app.mailer.transport%']
5454
5555
.. code-block:: xml
5656

service_container/optional_dependencies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ call if the service exists and remove the method call if it does not:
7676
# app/config/services.yml
7777
services:
7878
app.newsletter_manager:
79-
class: AppBundle\Newsletter\NewsletterManager
79+
class: AppBundle\Newsletter\NewsletterManager
8080
calls:
8181
- [setMailer, ['@?app.mailer']]
8282

0 commit comments

Comments
 (0)