protected function resolveHost($host)
    {
        if (strpos($host, '://') !== false) {
            list($schema, $host) = explode('://', $host, 2);
        }

        if ($this->schema) {
            $schema = $this->schema;
        }

        if (empty($schema)) {
            $schema = 'http';
        }

        return array($schema, $host);
    }
protected function resolveHost($host)
    {
        if (strpos($host, '://') !== false) {
            list($schema, $host) = explode('://', $host, 2);
        }

        if ($this->schema) {
            $schema = $this->schema;
        }

        if (empty($schema)) {
            $schema = 'http';
        }

        return array($schema, $host);
    }
protected function resolveHost ( $ host ) { if ( strpos ( $ host , '://' ) !== false ) { list ( $ schema , $ host ) = explode ( '://' , $ host , 2 ) ; } if ( $ this -> schema ) { $ schema = $ this -> schema ; } if ( empty ( $ schema ) ) { $ schema = 'http' ; } return array ( $ schema , $ host ) ; }
Resolves schema and host name with dir from passed basename

@param string $host

@return array
Resolves schema and host name with dir from passed basename