@@ -239,11 +239,21 @@ |
||
239 | 239 | |
240 | 240 | private function getHandler($dir = null, $plugins = null, $factory = null, $register = null, $app = null) |
241 | 241 | { |
242 | - if($dir === null) $dir = __DIR__.'/plugins'; |
|
243 | - if($plugins === null) $plugins = $this->makeCollection(); |
|
244 | - if($factory === null) $factory = $this->makeViewFactory(); |
|
245 | - if($register === null) $register = $this->makeRegister(); |
|
246 | - if($app === null) $app = $this->makeApp(); |
|
242 | + if($dir === null) { |
|
243 | + $dir = __DIR__.'/plugins'; |
|
244 | + } |
|
245 | + if($plugins === null) { |
|
246 | + $plugins = $this->makeCollection(); |
|
247 | + } |
|
248 | + if($factory === null) { |
|
249 | + $factory = $this->makeViewFactory(); |
|
250 | + } |
|
251 | + if($register === null) { |
|
252 | + $register = $this->makeRegister(); |
|
253 | + } |
|
254 | + if($app === null) { |
|
255 | + $app = $this->makeApp(); |
|
256 | + } |
|
247 | 257 | return new PluginHandler($dir, $plugins, $factory, $register, $app); |
248 | 258 | } |
249 | 259 | } |