From 10351ddfb6a76052a7f73ef56bb9b72268c6e7cf Mon Sep 17 00:00:00 2001 From: Daniel Plainview Date: Mon, 25 Mar 2013 16:07:42 +0400 Subject: [PATCH] add workaround for SimplePhpView::create() --- main/UI/View/SimplePhpView.class.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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;