Client/LoaderFactory.php
public function make($host)
    {
        $host = $this->resolver->resolve($host, '/');
        $hash = md5($host);

        if (isset($this->instances[$hash])) {
            return $this->instances[$hash];
        }

        $dir = sprintf(
            '%s/%s',
            rtrim($this->cacheDir, '/'),
            $hash
        );
        $instance = new Loader(
            new FileCache(sprintf(
                '%s/definitions.php',
                $dir
            )),
            $this->resolver,
            $this->builder,
            $this->http,
            $this->validator
        );
        $this->instances[$hash] = $instance;

        return $instance;
    }
public function make($host)
    {
        $host = $this->resolver->resolve($host, '/');
        $hash = md5($host);

        if (isset($this->instances[$hash])) {
            return $this->instances[$hash];
        }

        $dir = sprintf(
            '%s/%s',
            rtrim($this->cacheDir, '/'),
            $hash
        );
        $instance = new Loader(
            new FileCache(sprintf(
                '%s/definitions.php',
                $dir
            )),
            $this->resolver,
            $this->builder,
            $this->http,
            $this->validator
        );
        $this->instances[$hash] = $instance;

        return $instance;
    }
public function make ( $ host ) { $ host = $ this -> resolver -> resolve ( $ host , '/' ) ; $ hash = md5 ( $ host ) ; if ( isset ( $ this -> instances [ $ hash ] ) ) { return $ this -> instances [ $ hash ] ; } $ dir = sprintf ( '%s/%s' , rtrim ( $ this -> cacheDir , '/' ) , $ hash ) ; $ instance = new Loader ( new FileCache ( sprintf ( '%s/definitions.php' , $ dir ) ) , $ this -> resolver , $ this -> builder , $ this -> http , $ this -> validator ) ; $ this -> instances [ $ hash ] = $ instance ; return $ instance ; }
Create a loader for a given host

@param string $host

@return Loader
Create a loader for a given host