Added optional argument $installer to PackageManager::installPackage()