Example #1
0
 /**
  * mainly handle the dependency on \App\Config\Config and also
  * lets the class to be more testable on direction
  * in this style we can change the direction to any other place
  */
 public function __construct()
 {
     if (!isset($this->viewsDirection)) {
         $this->viewsDirection = \App\Config\Config::view();
     }
 }