diff --git a/main/UI/View/SimplePhpView.class.php b/main/UI/View/SimplePhpView.class.php index af28fdd452..c157d9e9f3 100644 --- a/main/UI/View/SimplePhpView.class.php +++ b/main/UI/View/SimplePhpView.class.php @@ -16,7 +16,16 @@ class SimplePhpView extends EmptyView { protected $templatePath = null; protected $partViewResolver = null; - + + /** + * @return SimplePhpView + */ + public static function create() + { + $class = new ReflectionClass(__CLASS__); + return $class->newInstanceArgs(func_get_args()); + } + public function __construct($templatePath, ViewResolver $partViewResolver) { $this->templatePath = $templatePath;