$type =
$package->
getType();
$frameworkType =
$this->
findFrameworkType($type);
if ($frameworkType === false
) { throw new \
InvalidArgumentException( 'Sorry the package type of this package is not yet supported.'
);
} $class = 'Composer\\Installers\\' .
$this->supportedTypes
[$frameworkType];
$installer =
new $class($package,
$this->composer,
$this->
getIO());
$path =
$installer->
getInstallPath($package,
$frameworkType);
if (!
$this->filesystem->
isAbsolutePath($path)) { $path =
getcwd() . '/' .
$path;
} return $path;
} public function uninstall(InstalledRepositoryInterface
$repo, PackageInterface
$package) {