Example #1
0
 public function __construct($moduleDirectory = null)
 {
     App::$config = $this;
     if ($moduleDirectory === null) {
         $moduleDirectory = dirname(__FILE__) . '/../../../modules/';
     }
     if (file_exists($moduleDirectory)) {
         $this->moduleDirectory = $moduleDirectory;
     } else {
         throw new \Exception("Modules directory, {$moduleDirectory}, does not exist");
     }
 }