Prose\CleanupHosts::shutdown PHP Метод

shutdown() публичный Метод

public shutdown ( )
    public function shutdown()
    {
        // get the hosts table, if we have one
        $hostsTable = $this->getTable();
        if (!$hostsTable) {
            return;
        }
        // remove any empty test environments
        foreach ($hostsTable as $testEnv => $hosts) {
            if (count(get_object_vars($hosts)) == 0) {
                unset($hostsTable->{$testEnv});
            }
        }
        // cleanup the tables
        $this->removeTablesIfEmpty();
        // save the runtimeConfig
        $this->st->saveRuntimeConfig();
    }