public static function register(Shell $shell, $classMapPath)
    {
        return tap(new static($shell, $classMapPath), function ($loader) {
            spl_autoload_register([$loader, 'aliasClass']);
        });
    }
public static function register(Shell $shell, $classMapPath)
    {
        return tap(new static($shell, $classMapPath), function ($loader) {
            spl_autoload_register([$loader, 'aliasClass']);
        });
    }
public static function register ( Shell $ shell , $ classMapPath ) { return tap ( new static ( $ shell , $ classMapPath ) , function ( $ loader ) { spl_autoload_register ( [ $ loader , 'aliasClass' ] ) ; } ) ; }
Register a new alias loader instance.

@param  \Psy\Shell  $shell
@param  string  $classMapPath
@return static
Register a new alias loader instance .