Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

Commit ba1f28b

Browse files
committed
Merge branch '2.3' into 2.4
* 2.3: Backport issue 426 / PR 429 to branch 2.2 updated VENDORS for 2.2.10 updated VENDORS for 2.2.9 updated VENDORS for 2.2.8 updated VENDORS for 2.2.6 updated VENDORS for 2.2.5 updated demo code to use the non-deprecated features of Twig updated VENDORS for 2.2.4 updated VENDORS for 2.2.3 updated VENDORS for 2.2.2 Conflicts: app/config/config_dev.yml
2 parents d1d504f + f712e45 commit ba1f28b

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

UPGRADE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ a link cannot be generated):
7979

8080
framework:
8181
router:
82-
strict_requirements: %kernel.debug%
82+
strict_requirements: "%kernel.debug%"
8383

8484
You can even disable the requirements check on production with `null` as you should
8585
know that the parameters for URL generation always pass the requirements, e.g. by
@@ -90,7 +90,7 @@ The `default_locale` parameter is now a setting of the main `framework`
9090
configuration (it was under the `framework.session` in 2.0):
9191

9292
framework:
93-
default_locale: %locale%
93+
default_locale: "%locale%"
9494

9595
The `auto_start` setting under `framework.session` must be removed as it is
9696
not used anymore (the session is now always started on-demand). If

app/config/config.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ imports:
44

55
framework:
66
#esi: ~
7-
#translator: { fallback: %locale% }
8-
secret: %secret%
7+
#translator: { fallback: "%locale%" }
8+
secret: "%secret%"
99
router:
1010
resource: "%kernel.root_dir%/config/routing.yml"
1111
strict_requirements: ~
@@ -23,44 +23,44 @@ framework:
2323

2424
# Twig Configuration
2525
twig:
26-
debug: %kernel.debug%
27-
strict_variables: %kernel.debug%
26+
debug: "%kernel.debug%"
27+
strict_variables: "%kernel.debug%"
2828

2929
# Assetic Configuration
3030
assetic:
31-
debug: %kernel.debug%
31+
debug: "%kernel.debug%"
3232
use_controller: false
3333
bundles: [ ]
3434
#java: /usr/bin/java
3535
filters:
3636
cssrewrite: ~
3737
#closure:
38-
# jar: %kernel.root_dir%/Resources/java/compiler.jar
38+
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
3939
#yui_css:
40-
# jar: %kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar
40+
# jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
4141

4242
# Doctrine Configuration
4343
doctrine:
4444
dbal:
45-
driver: %database_driver%
46-
host: %database_host%
47-
port: %database_port%
48-
dbname: %database_name%
49-
user: %database_user%
50-
password: %database_password%
45+
driver: "%database_driver%"
46+
host: "%database_host%"
47+
port: "%database_port%"
48+
dbname: "%database_name%"
49+
user: "%database_user%"
50+
password: "%database_password%"
5151
charset: UTF8
5252
# if using pdo_sqlite as your database driver, add the path in parameters.yml
53-
# e.g. database_path: %kernel.root_dir%/data/data.db3
54-
# path: %database_path%
53+
# e.g. database_path: "%kernel.root_dir%/data/data.db3"
54+
# path: "%database_path%"
5555

5656
orm:
57-
auto_generate_proxy_classes: %kernel.debug%
57+
auto_generate_proxy_classes: "%kernel.debug%"
5858
auto_mapping: true
5959

6060
# Swiftmailer Configuration
6161
swiftmailer:
62-
transport: %mailer_transport%
63-
host: %mailer_host%
64-
username: %mailer_user%
65-
password: %mailer_password%
62+
transport: "%mailer_transport%"
63+
host: "%mailer_host%"
64+
username: "%mailer_user%"
65+
password: "%mailer_password%"
6666
spool: { type: memory }

app/config/config_dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ monolog:
1515
handlers:
1616
main:
1717
type: stream
18-
path: %kernel.logs_dir%/%kernel.environment%.log
18+
path: "%kernel.logs_dir%/%kernel.environment%.log"
1919
level: debug
2020
console:
2121
type: console

app/config/config_prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ monolog:
1919
handler: nested
2020
nested:
2121
type: stream
22-
path: %kernel.logs_dir%/%kernel.environment%.log
22+
path: "%kernel.logs_dir%/%kernel.environment%.log"
2323
level: debug
2424
console:
2525
type: console

src/Acme/DemoBundle/Twig/Extension/DemoExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setController($controller)
2525
public function getFunctions()
2626
{
2727
return array(
28-
'code' => new \Twig_Function_Method($this, 'getCode', array('is_safe' => array('html'))),
28+
new \Twig_SimpleFunction('code', array($this, 'getCode'), array('is_safe' => array('html'))),
2929
);
3030
}
3131

0 commit comments

Comments
 (0)