public function run() { if ($this->getSapiName() === 'cli') { return $this->applicationConsole(); } return $this->applicationWeb(); }