File tree 2 files changed +3
-5
lines changed
src/Bridges/ApplicationDI
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 41
41
"nette/di" : " <3.0.7" ,
42
42
"nette/forms" : " <3.0" ,
43
43
"nette/schema" : " <1.2" ,
44
- "latte/latte" : " <2.7.1 || >=3.1 || =3.0.0 " ,
44
+ "latte/latte" : " <2.7.1 || >=3.0.0 <3.0.5 || > =3.1 " ,
45
45
"tracy/tracy" : " <2.5"
46
46
},
47
47
"autoload" : {
Original file line number Diff line number Diff line change @@ -116,10 +116,8 @@ public static function initLattePanel(
116
116
$ factory ->onCreate [] = function (ApplicationLatte \Template $ template ) use ($ bar , $ all ) {
117
117
$ control = $ template ->getLatte ()->getProviders ()['uiControl ' ] ?? null ;
118
118
if ($ all || $ control instanceof Nette \Application \UI \Presenter) {
119
- $ bar ->addPanel (new Latte \Bridges \Tracy \LattePanel (
120
- $ template ->getLatte (),
121
- $ all && $ control ? (new \ReflectionObject ($ control ))->getShortName () : ''
122
- ));
119
+ $ name = $ all && $ control ? (new \ReflectionObject ($ control ))->getShortName () : '' ;
120
+ $ template ->getLatte ()->addExtension (new Latte \Bridges \Tracy \TracyExtension ($ name ));
123
121
}
124
122
};
125
123
}
You can’t perform that action at this time.
0 commit comments