Ejemplo n.º 1
0
 /**
  * @param array $configs
  */
 public function __construct(array $configs = array())
 {
     $this->di = new DI();
     $this->errorCatcher = new ErrorCatcher();
     $this->errorCatcher->register();
     $this->config = json_decode(json_encode($configs));
     $this->di->setShared('config', $this->config);
     $this->di->setShared('app', $this);
 }