@@ -73,7 +73,6 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
7373 {
7474 $ initialize = $ class ->getMethod ('initialize ' );
7575 $ builder = $ this ->getContainerBuilder ();
76- $ class = method_exists ('Nette\DI\Helpers ' , 'filterArguments ' ) ? 'Nette\DI\Helpers ' : 'Nette\DI\Compiler ' ;
7776
7877 $ options = $ this ->config ;
7978 unset($ options ['bar ' ], $ options ['blueScreen ' ], $ options ['netteMailer ' ]);
@@ -89,7 +88,7 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
8988 $ key = ($ key === 'fromEmail ' ? 'getLogger()-> ' : '$ ' ) . $ key ;
9089 $ initialize ->addBody ($ builder ->formatPhp (
9190 'Tracy\Debugger:: ' . $ key . ' = ?; ' ,
92- $ class ::filterArguments ([$ value ])
91+ Nette \ DI \Helpers ::filterArguments ([$ value ])
9392 ));
9493 }
9594 }
@@ -114,7 +113,7 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
114113 }
115114 $ initialize ->addBody ($ builder ->formatPhp (
116115 '$this->getService(?)->addPanel(?); ' ,
117- $ class ::filterArguments ([$ this ->prefix ('bar ' ), $ item ])
116+ Nette \ DI \Helpers ::filterArguments ([$ this ->prefix ('bar ' ), $ item ])
118117 ));
119118 }
120119
@@ -126,7 +125,7 @@ public function afterCompile(Nette\PhpGenerator\ClassType $class)
126125 foreach ((array ) $ this ->config ['blueScreen ' ] as $ item ) {
127126 $ initialize ->addBody ($ builder ->formatPhp (
128127 '$this->getService(?)->addPanel(?); ' ,
129- $ class ::filterArguments ([$ this ->prefix ('blueScreen ' ), $ item ])
128+ Nette \ DI \Helpers ::filterArguments ([$ this ->prefix ('blueScreen ' ), $ item ])
130129 ));
131130 }
132131
0 commit comments