src/LibraryTrait.php
public static function get($name)
    {
        $class = get_called_class();
    
        if (!isset(self::$instance[$class])) {
            self::$instance[$class] = new static();
        }
        
        return self::$instance[$class]->getExtensions()->get($name);
    }
public static function get($name)
    {
        $class = get_called_class();
    
        if (!isset(self::$instance[$class])) {
            self::$instance[$class] = new static();
        }
        
        return self::$instance[$class]->getExtensions()->get($name);
    }
public static function get ( $ name ) { $ class = get_called_class ( ) ; if ( ! isset ( self :: $ instance [ $ class ] ) ) { self :: $ instance [ $ class ] = new static ( ) ; } return self :: $ instance [ $ class ] -> getExtensions ( ) -> get ( $ name ) ; }
Get an extension

@param string $name

@return \Closure
Get an extension