public function redirectHttps(AnCommandContext $context)
    {
        if (AnRequest::url()->scheme === 'http') {
            $url = clone AnRequest::url();
            $url->scheme = 'https';
            $context->response->setRedirect($url);
            return false;
        }
    }