public function startApp()
{
if ($this->bootstrap instanceof Application) {
$app = $this->bootstrap;
} else {
if (is_array($this->bootstrap)) {
$app = new Application($this->bootstrap);
} else {
$app = (require $this->bootstrap);
}
}
$app->bootstrap();
return $app;
}