PackageService
class PackageService (View source)
Service class for the package entities and controllers.
Properties
| protected Localization | $localization | The Localization service instance.  | 
                |
| protected Application | $application | The Application container instance.  | 
                |
| protected EntityManagerInterface | $entityManager | The EntityManagerInterface instance.  | 
                
Methods
Initialize the instance.
Get a package entity given its handle.
Get the package entities of installed packages.
Get the package controllers of the available packages.
Get the controllers of packages that have newer versions in the local packages directory than those which are in the Packages table.
Get the handles of all the installed packages.
Get the controllers of the packages that have an upgraded version available in the marketplace.
Initialize the entity manager for a package.
No description
Details
        
                            
    __construct(Localization $localization, Application $application, EntityManagerInterface $entityManager)
        
    
    Initialize the instance.
        
                            Package|null
    getByHandle(string $pkgHandle)
        
    
    Get a package entity given its handle.
        
                            Package|null
    getByID(int $pkgID)
        
    
    Get a package entity given its ID.
        
                            Package[]
    getInstalledList()
        
    
    Get the package entities of installed packages.
        
                            Package[]
    getAvailablePackages(bool $onlyNotInstalled = true)
        
    
    Get the package controllers of the available packages.
        
                            Package[]
    getLocalUpgradeablePackages()
        
    
    Get the controllers 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()
        
    
    Get the handles of all the installed packages.
        
                            Package[]
    getRemotelyUpgradeablePackages()
        
    
    Get the controllers of the packages that have an upgraded version available in the marketplace.
        
                            
    bootPackageEntityManager(Package $p, bool $clearCache = false)
        
    
    Initialize the entity manager for a package.
        
                            
    uninstall(Package $p)
        
    
    Uninstall a package.
        
                            Package
    getClass(string $pkgHandle)
        
    
    Get the controller of a package given its handle.
        
                            
    setupLocalization(LocalizablePackageInterface $package, string|null $locale = null, $translator = 'current')
        deprecated
    
    deprecated
No description