CacheTool\Adapter\FastCGI::doRun PHP Method

doRun() protected method

protected doRun ( Code $code )
$code CacheTool\Code
    protected function doRun(Code $code)
    {
        $response = $this->request($code);
        $parts = explode("\r\n\r\n", $response);
        // remove headers
        array_shift($parts);
        $body = implode("\r\n\r\n", $parts);
        if (@unserialize($body) === false) {
            throw new \RuntimeException(sprintf("Error: %s", $response));
        }
        return $body;
    }