public function __construct($config = []) { // 由于多态 此时 $this 是子类 Application Y::$app = $this; $this->errorHandler(); $this->init($config); Y::config($this, $config); }