protected function stripVendorDir($path, $vendorDir)
    {
        $path = realpath($path);
        $vendorDir = realpath($vendorDir);

        if (strpos($path, $vendorDir) === 0) {
            $path = substr($path, strlen($vendorDir));
        }

        return $path;
    }
protected function stripVendorDir($path, $vendorDir)
    {
        $path = realpath($path);
        $vendorDir = realpath($vendorDir);

        if (strpos($path, $vendorDir) === 0) {
            $path = substr($path, strlen($vendorDir));
        }

        return $path;
    }
protected function stripVendorDir ( $ path , $ vendorDir ) { $ path = realpath ( $ path ) ; $ vendorDir = realpath ( $ vendorDir ) ; if ( strpos ( $ path , $ vendorDir ) === 0 ) { $ path = substr ( $ path , strlen ( $ vendorDir ) ) ; } return $ path ; }
Removes the vendor directory from a path.
@param string $path
@return string
Removes the vendor directory from a path .