function resecureForNewTld($oldTld, $tld)
    {
        if (! $this->files->exists($this->certificatesPath())) {
            return;
        }

        $secured = $this->secured();

        foreach ($secured as $url) {
            $this->unsecure($url);
        }

        foreach ($secured as $url) {
            $this->secure(str_replace('.'.$oldTld, '.'.$tld, $url));
        }
    }
function resecureForNewTld($oldTld, $tld)
    {
        if (! $this->files->exists($this->certificatesPath())) {
            return;
        }

        $secured = $this->secured();

        foreach ($secured as $url) {
            $this->unsecure($url);
        }

        foreach ($secured as $url) {
            $this->secure(str_replace('.'.$oldTld, '.'.$tld, $url));
        }
    }
function resecureForNewTld ( $ oldTld , $ tld ) { if ( ! $ this -> files -> exists ( $ this -> certificatesPath ( ) ) ) { return ; } $ secured = $ this -> secured ( ) ; foreach ( $ secured as $ url ) { $ this -> unsecure ( $ url ) ; } foreach ( $ secured as $ url ) { $ this -> secure ( str_replace ( '.' . $ oldTld , '.' . $ tld , $ url ) ) ; } }
Resecure all currently secured sites with a fresh tld.

@param  string  $oldTld
@param  string  $tld
@return void
Resecure all currently secured sites with a fresh tld .