src/ArunCore/Core/CodeBuilders/DomainManipulator.php
public function disableDomain(string $domainName)
    {
        $domainClassCode = $this->fileMan->loadDomainCode($domainName);

        $domainClassCode = str_replace(
            "@SET\DomainEnabled(true)",
            "@SET\DomainEnabled(false)",
            $domainClassCode
        );

        return $this->fileMan->storeDomainCode($domainName, $domainClassCode, true);
    }
public function disableDomain(string $domainName)
    {
        $domainClassCode = $this->fileMan->loadDomainCode($domainName);

        $domainClassCode = str_replace(
            "@SET\DomainEnabled(true)",
            "@SET\DomainEnabled(false)",
            $domainClassCode
        );

        return $this->fileMan->storeDomainCode($domainName, $domainClassCode, true);
    }
public function disableDomain ( string $ domainName ) { $ domainClassCode = $ this -> fileMan -> loadDomainCode ( $ domainName ) ; $ domainClassCode = str_replace ( "@SET\DomainEnabled(true)" , "@SET\DomainEnabled(false)" , $ domainClassCode ) ; return $ this -> fileMan -> storeDomainCode ( $ domainName , $ domainClassCode , true ) ; }
Disable an existing domain

@param string $domainName
@return bool|int
Disable an existing domain