Permalink
Browse files

ESDEV-4156 Simplify getter for view object

  • Loading branch information...
1 parent 97c8234 commit c554044cc02982d7a92739fad86d2bb697fae928 @rezonanc-oxid rezonanc-oxid committed Dec 8, 2016
Showing with 8 additions and 4 deletions.
  1. +8 −4 source/Setup/Controller.php
@@ -38,6 +38,14 @@ class Controller extends Core
private $view = null;
/**
+ * Controller constructor
+ */
+ public function __construct()
+ {
+ $this->view = new View();
+ }
+
+ /**
* First page with system requirements check
*
* @return string
@@ -512,10 +520,6 @@ public function finish()
*/
public function getView()
{
- if ($this->view == null) {
- $this->view = new View();
- }
-
return $this->view;
}

0 comments on commit c554044

Please sign in to comment.