src/Registry.php
public function instance($name)
    {
        if (empty($this->instances[$name])) {
            if (empty($this->aliases[$name])) {
                $this->aliasDefault($name);
            }
            $this->instances[$name] = new $this->aliases[$name];
        }

        return $this->instances[$name];
    }
public function instance($name)
    {
        if (empty($this->instances[$name])) {
            if (empty($this->aliases[$name])) {
                $this->aliasDefault($name);
            }
            $this->instances[$name] = new $this->aliases[$name];
        }

        return $this->instances[$name];
    }
public function instance ( $ name ) { if ( empty ( $ this -> instances [ $ name ] ) ) { if ( empty ( $ this -> aliases [ $ name ] ) ) { $ this -> aliasDefault ( $ name ) ; } $ this -> instances [ $ name ] = new $ this -> aliases [ $ name ] ; } return $ this -> instances [ $ name ] ; }
Get the callable for an Underscore method alias.

@param  string $name
@return callable
Get the callable for an Underscore method alias .