File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
src/Bridges/ApplicationDI Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1919 "nette/component-model" : " ^3.0" ,
2020 "nette/http" : " ^3.0.2" ,
2121 "nette/routing" : " ^3.0.2" ,
22- "nette/utils" : " ^3.2.1"
22+ "nette/utils" : " ^3.2.1 || ~4.0.0 "
2323 },
2424 "suggest" : {
2525 "nette/forms" : " Allows to use Nette\\ Application\\ UI\\ Form" ,
Original file line number Diff line number Diff line change @@ -66,9 +66,10 @@ public function loadConfiguration()
6666 ->addSetup ('setStrictTypes ' , [$ config ->strictTypes ]);
6767
6868 if (version_compare (Latte \Engine::VERSION , '3 ' , '< ' )) {
69- $ latteFactory
70- ->addSetup ('setContentType ' , [$ config ->xhtml ? Latte \Compiler::CONTENT_XHTML : Latte \Compiler::CONTENT_HTML ])
71- ->addSetup ('Nette\Utils\Html::$xhtml = ? ' , [$ config ->xhtml ]);
69+ $ latteFactory ->addSetup ('setContentType ' , [$ config ->xhtml ? Latte \Compiler::CONTENT_XHTML : Latte \Compiler::CONTENT_HTML ]);
70+ if ($ config ->xhtml ) {
71+ $ latteFactory ->addSetup ('Nette\Utils\Html::$xhtml = ? ' , [true ]);
72+ }
7273 foreach ($ config ->macros as $ macro ) {
7374 $ this ->addMacro ($ macro );
7475 }
You can’t perform that action at this time.
0 commit comments