protected function createApp($callback = null) { $app = new Application(['root' => '.', 'services' => ['log' => $this->createLogger($this->logFile)]]); if ($callback) { $app->route('GET', '/', $callback); } $app->bootstrap(); return $app; }