public function systemCheck($type, $messages = [], $context = [])
{
if ($this->app === null) {
throw new \RuntimeException('Exception controller being used outside of request cycle.');
}
$context['config'] = $this->app['config'];
$context['paths'] = $this->app['resources']->getPaths();
$context['debug'] = $this->app['debug'];
$context['type'] = $type;
$context['messages'] = $messages;
$html = $this->app['twig']->render('@bolt/exception/system/exception.twig', $context);
return new Response($html, Response::HTTP_OK);
}