public function registerDomain( $domain, $dir, $info = [] ) {
		$info['dir'] = $dir;
		$this->domainInfos[ $this->normalizeDomain( $domain ) ] = $info;
	}
public function registerDomain( $domain, $dir, $info = [] ) {
		$info['dir'] = $dir;
		$this->domainInfos[ $this->normalizeDomain( $domain ) ] = $info;
	}
public function registerDomain ( $ domain , $ dir , $ info = [ ] ) { $ info [ 'dir' ] = $ dir ; $ this -> domainInfos [ $ this -> normalizeDomain ( $ domain ) ] = $ info ; }
Register a custom domain.

@param string $domain Name of domain
@param string $dir Path to messages directory
@param array $info [optional] Domain info
@return array
Register a custom domain .