Created
January 21, 2014 12:22
-
-
Save mishak87/8539051 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait TemplateFactory | |
{ | |
/** | |
* @inject | |
* @var \Rixxi\ITemplateFactory | |
*/ | |
public $templateFactory; | |
protected function createTemplate($class = NULL) | |
{ | |
return $this->templateFactory !== NULL | |
? $this->templateFactory->createTemplate($this, $class) | |
: parent::createTemplate($class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment