/** * * @param string $type */ public function __construct($type = 'app') { if ($type == 'app') { die('unknown $type 1111111111111'); $this->setConfig(config::getAppConfig()); } elseif ($type == 'exp') { die('unknown $type 2222222222222'); $this->setConfig(getExceptionConfig()); } elseif ($type == 'rules') { $this->setConfig(rules::getExceptionRules()); } }