Example #1
0
 /**
  * オートロード設定を実行
  */
 function autoloadRegister()
 {
     $conf = new ConfigLoader('autoload');
     $loadConf = $conf->getArray();
     if (!empty($loadConf)) {
         $loader = new Loader();
         $loader->registerNamespaces($loadConf)->register();
     }
 }
Example #2
0
 /**
  * ルーティング設定を読み込み、PhalconMicroを読み込む
  * Router constructor.
  * @param $app
  */
 public function __construct($app)
 {
     $conf = new ConfigLoader('routing');
     $this->conf = $conf->getArray();
     $this->app = $app;
 }