File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
src/Symfony/Bundle/FrameworkBundle
Tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ public function getConfigTreeBuilder()
53
53
return $ v ;
54
54
})
55
55
->end ()
56
+ ->beforeNormalization ()
57
+ ->ifTrue (function ($ v ) { return !isset ($ v ['templating ' ]) && !isset ($ v ['assets ' ]); })
58
+ ->then (function ($ v ) {
59
+ $ v ['assets ' ] = null ;
60
+
61
+ return $ v ;
62
+ })
63
+ ->end ()
56
64
->validate ()
57
65
->ifTrue (function ($ v ) { return isset ($ v ['templating ' ]); })
58
66
->then (function ($ v ) {
@@ -65,7 +73,7 @@ public function getConfigTreeBuilder()
65
73
66
74
// convert the old configuration to the new one
67
75
if (isset ($ v ['assets ' ])) {
68
- throw new LogicException ('You cannot use assets settings under "templating.templating" and "assets" configurations in the same project. ' );
76
+ throw new \ LogicException ('You cannot use assets settings under "templating.templating" and "assets" configurations in the same project. ' );
69
77
}
70
78
71
79
$ v ['assets ' ] = array (
Original file line number Diff line number Diff line change @@ -145,6 +145,13 @@ protected static function getBundleDefaultConfig()
145
145
'magic_call ' => false ,
146
146
'throw_exception_on_invalid_index ' => false ,
147
147
),
148
+ 'assets ' => array (
149
+ 'version ' => null ,
150
+ 'version_format ' => '%%s?%%s ' ,
151
+ 'base_path ' => '' ,
152
+ 'base_urls ' => array (),
153
+ 'packages ' => array (),
154
+ ),
148
155
);
149
156
}
150
157
}
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " >=5.3.9" ,
20
+ "symfony/asset" : " ~2.7|~3.0.0" ,
20
21
"symfony/dependency-injection" : " ~2.6,>=2.6.2" ,
21
22
"symfony/config" : " ~2.4" ,
22
23
"symfony/event-dispatcher" : " ~2.5|~3.0.0" ,
48
49
"symfony/yaml" : " ~2.0,>=2.0.5|~3.0.0"
49
50
},
50
51
"suggest" : {
51
- "symfony/asset" : " " ,
52
52
"symfony/console" : " For using the console commands" ,
53
53
"symfony/finder" : " For using the translation loader and cache warmer" ,
54
54
"symfony/form" : " For using forms" ,
You can’t perform that action at this time.
0 commit comments