| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function createTemplate(Control $control = NULL) |
||
| 31 | { |
||
| 32 | if (!$this->templateManager) { |
||
| 33 | $class = self::class; |
||
| 34 | throw new ConfigurationException("You must set template manager object via {$class}::setTemplateManager() method."); |
||
| 35 | } |
||
| 36 | $template = parent::createTemplate($control); |
||
| 37 | |||
| 38 | if ($template instanceof Template) { |
||
| 39 | $template->setTemplateManager($this->templateManager); |
||
| 40 | } |
||
| 41 | |||
| 42 | return $template; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |