Verified Commit 11a5a1fe authored by Jan Wennrich's avatar Jan Wennrich 🎓

feat: new method to quickly count installed packages in Package Manager

parent 4b957f8b
......@@ -847,6 +847,20 @@ class Manager extends QUI\QDOM
}
}
/**
* Returns how many packages are installed.
*
* This is better than counting the result of getInstalled(), since this doesn't instantiates all packages as objects.
*
* @return int
*/
public function countInstalledPackages()
{
return count($this->getList());
}
/**
* Return the installed packages
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment