Made it possible to pass PackageManager to ManagerFactory::createRepositoryManager()