src/ComposerVendor.php
public static function getDir()
    {
        if (isset(self::$vendorDir))
            return self::$vendorDir;

        self::$vendorDir = dirname(dirname(dirname(__DIR__)));
        return self::$vendorDir;
    }
public static function getDir()
    {
        if (isset(self::$vendorDir))
            return self::$vendorDir;

        self::$vendorDir = dirname(dirname(dirname(__DIR__)));
        return self::$vendorDir;
    }
获取composer vendor目录
@return string 返回composer vendor目录