public function route($method, $route, $handler) { $this->routes[] = [$method, $route, $handler]; return $this; }
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; }