public static function getInstance($className)
    {
        if (!isset(static::$registeredClasses[$className])) {
            return null;
        }
        /** @var DI $object */
        $object = $className::build()->auto();
        return $object;
    }
public static function getInstance($className)
    {
        if (!isset(static::$registeredClasses[$className])) {
            return null;
        }
        /** @var DI $object */
        $object = $className::build()->auto();
        return $object;
    }
public static function getInstance ( $ className ) { if ( ! isset ( static :: $ registeredClasses [ $ className ] ) ) { return null ; } /** @var DI $object */ $ object = $ className :: build ( ) -> auto ( ) ; return $ object ; }
Get a new instance of a registered class, returns null if the class is not registered

@param $className
@return DI
Get a new instance of a registered class returns null if the class is not registered