Skip to content

Commit

Permalink
ESDEV-4156 Simplify getter for view object
Browse files Browse the repository at this point in the history
  • Loading branch information
rezonanc-oxid committed Jan 9, 2017
1 parent 97c8234 commit c554044
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions source/Setup/Controller.php
Expand Up @@ -37,6 +37,14 @@ class Controller extends Core
/** @var View */ /** @var View */
private $view = null; private $view = null;


/**
* Controller constructor
*/
public function __construct()
{
$this->view = new View();
}

/** /**
* First page with system requirements check * First page with system requirements check
* *
Expand Down Expand Up @@ -512,10 +520,6 @@ public function finish()
*/ */
public function getView() public function getView()
{ {
if ($this->view == null) {
$this->view = new View();
}

return $this->view; return $this->view;
} }


Expand Down

0 comments on commit c554044

Please sign in to comment.