class PackageService (View source)

Properties

protected $entityManager
protected $application
protected $localization

Methods

__construct(Localization $localization, Application $application, EntityManagerInterface $entityManager)

No description

getByHandle($pkgHandle)

No description

getByID($pkgID)

No description

getInstalledList()

Returns an array of all installed packages.

getAvailablePackages(bool $filterInstalled = true)

Returns all available packages.

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.

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

getClass(string $pkgHandle)

Returns a package's class.

Details

__construct(Localization $localization, Application $application, EntityManagerInterface $entityManager)

No description

Parameters

Localization $localization
Application $application
EntityManagerInterface $entityManager

getByHandle($pkgHandle)

No description

Parameters

$pkgHandle

getByID($pkgID)

No description

Parameters

$pkgID

Package[] getInstalledList()

Returns an array of all installed packages.

Return Value

Package[]

Package[] getAvailablePackages(bool $filterInstalled = true)

Returns all available packages.

Parameters

bool $filterInstalled

True to only return not installed packages

Return Value

Package[]

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.

Return Value

Package[]

string[] getInstalledHandles()

Returns all installed package handles.

Return Value

string[]

Package[] getRemotelyUpgradeablePackages()

Finds all packages that have an upgraded version available in the marketplace.

Return Value

Package[]

setupLocalization(LocalizablePackageInterface $package, $locale = null, $translate = 'current')

No description

Parameters

LocalizablePackageInterface $package
$locale
$translate

bootPackageEntityManager(Package $p, $clearCache = false)

No description

Parameters

Package $p
$clearCache

uninstall(Package $p)

No description

Parameters

Package $p

install(Package $p, $data)

No description

Parameters

Package $p
$data

Package getClass(string $pkgHandle)

Returns a package's class.

Parameters

string $pkgHandle

Handle of package

Return Value

Package