Skip to content

Commit 833a86c

Browse files
committed
Wrapping all YAML parameter % uses with quotes. Without quotes, the colors do not render correctly - see #945
1 parent 2cb7057 commit 833a86c

File tree

13 files changed

+39
-39
lines changed

13 files changed

+39
-39
lines changed

book/page_creation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -729,21 +729,21 @@ format you prefer:
729729
- { resource: security.yml }
730730
731731
framework:
732-
secret: %secret%
732+
secret: "%secret%"
733733
charset: UTF-8
734734
router: { resource: "%kernel.root_dir%/config/routing.yml" }
735735
form: true
736736
csrf_protection: true
737737
validation: { enable_annotations: true }
738738
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
739739
session:
740-
default_locale: %locale%
740+
default_locale: "%locale%"
741741
auto_start: true
742742
743743
# Twig Configuration
744744
twig:
745-
debug: %kernel.debug%
746-
strict_variables: %kernel.debug%
745+
debug: "%kernel.debug%"
746+
strict_variables: "%kernel.debug%"
747747
748748
# ...
749749

cookbook/configuration/environments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ environment by using this code and changing the environment string.
196196
197197
doctrine:
198198
dbal:
199-
logging: %kernel.debug%
199+
logging: "%kernel.debug%"
200200
# ...
201201
202202
.. code-block:: xml

cookbook/email/spool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ In order to use the spool, use the following configuration:
5959

6060
.. code-block:: yaml
6161
62-
path: %kernel.root_dir%/spool
62+
path: "%kernel.root_dir%/spool"
6363
6464
Now, when your app sends an email, it will not actually be sent but instead
6565
added to the spool. Sending the messages from the spool is done separately.

cookbook/logging/monolog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ using a processor.
225225
handlers:
226226
main:
227227
type: stream
228-
path: %kernel.logs_dir%/%kernel.environment%.log
228+
path: "%kernel.logs_dir%/%kernel.environment%.log"
229229
level: debug
230230
formatter: monolog.formatter.session_request
231231

cookbook/logging/monolog_email.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ get logged on the server as well as the emails being sent:
9595
members: [streamed, buffered]
9696
streamed:
9797
type: stream
98-
path: %kernel.logs_dir%/%kernel.environment%.log
98+
path: "%kernel.logs_dir%/%kernel.environment%.log"
9999
level: debug
100100
buffered:
101101
type: buffer

cookbook/security/remember_me.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ are shown here:
1919
firewalls:
2020
main:
2121
remember_me:
22-
key: %secret%
22+
key: "%secret%"
2323
lifetime: 3600
2424
path: /
2525
domain: ~ # Defaults to the current domain from $_SERVER

quick_tour/the_architecture.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -166,53 +166,53 @@ PHP. Have a look at the default configuration:
166166
- { resource: security.yml }
167167
168168
framework:
169-
secret: %secret%
169+
secret: "%secret%"
170170
charset: UTF-8
171171
router: { resource: "%kernel.root_dir%/config/routing.yml" }
172172
form: true
173173
csrf_protection: true
174174
validation: { enable_annotations: true }
175175
templating: { engines: ['twig'] } #assets_version: SomeVersionScheme
176176
session:
177-
default_locale: %locale%
177+
default_locale: "%locale%"
178178
auto_start: true
179179
180180
# Twig Configuration
181181
twig:
182-
debug: %kernel.debug%
183-
strict_variables: %kernel.debug%
182+
debug: "%kernel.debug%"
183+
strict_variables: "%kernel.debug%"
184184
185185
# Assetic Configuration
186186
assetic:
187-
debug: %kernel.debug%
187+
debug: "%kernel.debug%"
188188
use_controller: false
189189
filters:
190190
cssrewrite: ~
191191
# closure:
192-
# jar: %kernel.root_dir%/java/compiler.jar
192+
# jar: "%kernel.root_dir%/java/compiler.jar"
193193
# yui_css:
194-
# jar: %kernel.root_dir%/java/yuicompressor-2.4.2.jar
194+
# jar: "%kernel.root_dir%/java/yuicompressor-2.4.2.jar"
195195
196196
# Doctrine Configuration
197197
doctrine:
198198
dbal:
199-
driver: %database_driver%
200-
host: %database_host%
201-
dbname: %database_name%
202-
user: %database_user%
203-
password: %database_password%
199+
driver: "%database_driver%"
200+
host: "%database_host%"
201+
dbname: "%database_name%"
202+
user: "%database_user%"
203+
password: "%database_password%"
204204
charset: UTF8
205205
206206
orm:
207-
auto_generate_proxy_classes: %kernel.debug%
207+
auto_generate_proxy_classes: "%kernel.debug%"
208208
auto_mapping: true
209209
210210
# Swiftmailer Configuration
211211
swiftmailer:
212-
transport: %mailer_transport%
213-
host: %mailer_host%
214-
username: %mailer_user%
215-
password: %mailer_password%
212+
transport: "%mailer_transport%"
213+
host: "%mailer_host%"
214+
username: "%mailer_user%"
215+
password: "%mailer_password%"
216216
217217
jms_security_extra:
218218
secure_controllers: true
@@ -245,7 +245,7 @@ and then modifies it to add some debugging tools:
245245
handlers:
246246
main:
247247
type: stream
248-
path: %kernel.logs_dir%/%kernel.environment%.log
248+
path: "%kernel.logs_dir%/%kernel.environment%.log"
249249
level: debug
250250
firephp:
251251
type: firephp

reference/configuration/doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ Configuration Reference
2323
driver_class: MyNamespace\MyDriverImpl
2424
options:
2525
foo: bar
26-
path: %kernel.data_dir%/data.sqlite
26+
path: "%kernel.data_dir%/data.sqlite"
2727
memory: true
2828
unix_socket: /tmp/mysql.sock
2929
wrapper_class: MyDoctrineDbalConnectionWrapper
3030
charset: UTF8
31-
logging: %kernel.debug%
31+
logging: "%kernel.debug%"
3232
platform_service: MyOwnDatabasePlatformService
3333
mapping_types:
3434
enum: string
@@ -39,7 +39,7 @@ Configuration Reference
3939
orm:
4040
auto_generate_proxy_classes: false
4141
proxy_namespace: Proxies
42-
proxy_dir: %kernel.cache_dir%/doctrine/orm/Proxies
42+
proxy_dir: "%kernel.cache_dir%/doctrine/orm/Proxies"
4343
default_entity_manager: default # The first defined is used if not set
4444
entity_managers:
4545
default:

reference/configuration/framework.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Full Default Configuration
256256
profiler:
257257
only_exceptions: false
258258
only_master_requests: false
259-
dsn: sqlite:%kernel.cache_dir%/profiler.db
259+
dsn: "sqlite:%kernel.cache_dir%/profiler.db"
260260
username:
261261
password:
262262
lifetime: 86400
@@ -323,7 +323,7 @@ Full Default Configuration
323323
# annotation configuration
324324
annotations:
325325
cache: file
326-
file_cache_dir: %kernel.cache_dir%/annotations
326+
file_cache_dir: "%kernel.cache_dir%/annotations"
327327
debug: true
328328
329329
.. _`protocol-relative`: http://tools.ietf.org/html/rfc3986#section-4.2

reference/configuration/monolog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Configuration Reference
3434
priority: 0
3535
level: DEBUG
3636
bubble: true
37-
path: %kernel.logs_dir%/%kernel.environment%.log
37+
path: "%kernel.logs_dir%/%kernel.environment%.log"
3838
ident: false
3939
facility: user
4040
max_files: 0

reference/configuration/security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Each part will be explained in the next section.
6767
entity: { class: SecurityBundle:User, property: username }
6868
6969
factories:
70-
MyFactory: %kernel.root_dir%/../src/Acme/DemoBundle/Resources/config/security_factories.xml
70+
MyFactory: "%kernel.root_dir%/../src/Acme/DemoBundle/Resources/config/security_factories.xml"
7171
7272
firewalls:
7373
somename:

reference/configuration/swiftmailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ Full Default Configuration
186186
auth_mode: ~
187187
spool:
188188
type: file
189-
path: %kernel.cache_dir%/swiftmailer/spool
189+
path: "%kernel.cache_dir%/swiftmailer/spool"
190190
sender_address: ~
191191
antiflood:
192192
threshold: 99
193193
sleep: 0
194194
delivery_address: ~
195195
disable_delivery: ~
196-
logging: %kernel.debug%
196+
logging: "%kernel.debug%"

reference/configuration/twig.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ TwigBundle Configuration Reference
3030
value: ~
3131
autoescape: ~
3232
base_template_class: ~ # Example: Twig_Template
33-
cache: %kernel.cache_dir%/twig
34-
charset: %kernel.charset%
35-
debug: %kernel.debug%
33+
cache: "%kernel.cache_dir%/twig"
34+
charset: "%kernel.charset%"
35+
debug: "%kernel.debug%"
3636
strict_variables: ~
3737
auto_reload: ~
3838
exception_controller: Symfony\Bundle\TwigBundle\Controller\ExceptionController::showAction

0 commit comments

Comments
 (0)