public function make(string $alias)
    {
        if (array_key_exists($alias, $this->bindings)) {
            $classOrObject = $this->bindings[$alias];

            if (is_object($classOrObject)) {
                return $classOrObject;
            }

            return $this->makeInstance($classOrObject);
        }

        if (class_exists($alias)) {
            return self::register($alias, $this->makeInstance($alias))->make($alias);
        }
        throw new SimplesRunTimeError("Class '{$alias}' not found");
    }
public function make(string $alias)
    {
        if (array_key_exists($alias, $this->bindings)) {
            $classOrObject = $this->bindings[$alias];

            if (is_object($classOrObject)) {
                return $classOrObject;
            }

            return $this->makeInstance($classOrObject);
        }

        if (class_exists($alias)) {
            return self::register($alias, $this->makeInstance($alias))->make($alias);
        }
        throw new SimplesRunTimeError("Class '{$alias}' not found");
    }
public function make ( string $ alias ) { if ( array_key_exists ( $ alias , $ this -> bindings ) ) { $ classOrObject = $ this -> bindings [ $ alias ] ; if ( is_object ( $ classOrObject ) ) { return $ classOrObject ; } return $ this -> makeInstance ( $ classOrObject ) ; } if ( class_exists ( $ alias ) ) { return self :: register ( $ alias , $ this -> makeInstance ( $ alias ) ) -> make ( $ alias ) ; } throw new SimplesRunTimeError ( "Class '{$alias}' not found" ) ; }
Resolves and created a new instance of a desired class.

@param string $alias
@return mixed
@throws SimplesRunTimeError
Resolves and created a new instance of a desired class .