PackageService
class PackageService (View source)
Properties
protected | $entityManager | ||
protected | $application | ||
protected | $localization |
Methods
No description
No description
No description
Returns an array of all installed packages.
Returns all available packages.
Returns an array of packages that have newer versions in the local packages directory than those which are in the Packages table. This means they're ready to be upgraded.
Returns all installed package handles.
Finds all packages that have an upgraded version available in the marketplace.
No description
Details
__construct(Localization $localization, Application $application, EntityManagerInterface $entityManager)
No description
getByHandle($pkgHandle)
No description
getByID($pkgID)
No description
Package[]
getInstalledList()
Returns an array of all installed packages.
Package[]
getAvailablePackages(bool $filterInstalled = true)
Returns all available packages.
Package[]
getLocalUpgradeablePackages()
Returns an array of packages that have newer versions in the local packages directory than those which are in the Packages table. This means they're ready to be upgraded.
string[]
getInstalledHandles()
Returns all installed package handles.
Package[]
getRemotelyUpgradeablePackages()
Finds all packages that have an upgraded version available in the marketplace.
setupLocalization(LocalizablePackageInterface $package, $locale = null, $translate = 'current')
No description
bootPackageEntityManager(Package $p, $clearCache = false)
No description
uninstall(Package $p)
No description
install(Package $p, $data)
No description
Package
getClass(string $pkgHandle)
Returns a package's class.