Bolt\Controller\Exception::systemCheck PHP Method

systemCheck() public method

System check exceptions.
public systemCheck ( string $type, array $messages = [], array $context = [] ) : Response
$type string
$messages array
$context array
return Symfony\Component\HttpFoundation\Response
    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);
    }