Pantheon\Terminus\Models\Environment::wake PHP Method

wake() public method

"Wake" a site
public wake ( ) : array
return array
    public function wake()
    {
        $on_stats = function (TransferStats $stats) {
            $this->transfertime = $stats->getTransferTime();
        };
        $domains = $this->getDomains()->ids();
        $target = array_pop($domains);
        $healthc = "http://{$target}/pantheon_healthcheck";
        $response = $this->request()->request($healthc, compact('on_stats'));
        $return_data = ['success' => $response['status_code'] === 200, 'time' => $this->transfertime, 'styx' => $response['headers']['X-Pantheon-Styx-Hostname'], 'response' => $response, 'target' => $target];
        return $return_data;
    }