concrete/src/Package/Dependency/DependencyChecker.php
protected function getInstalledPackages()
    {
        if ($this->installedPackages === null) {
            $installedPackages = [];
            $packageService = $this->application->make(PackageService::class);
            foreach ($packageService->getInstalledHandles() as $packageHandle) {
                $installedPackages[$packageHandle] = $packageService->getClass($packageHandle);
            }
            $this->installedPackages = $installedPackages;
        }

        return $this->installedPackages;
    }
protected function getInstalledPackages()
    {
        if ($this->installedPackages === null) {
            $installedPackages = [];
            $packageService = $this->application->make(PackageService::class);
            foreach ($packageService->getInstalledHandles() as $packageHandle) {
                $installedPackages[$packageHandle] = $packageService->getClass($packageHandle);
            }
            $this->installedPackages = $installedPackages;
        }

        return $this->installedPackages;
    }
protected function getInstalledPackages ( ) { if ( $ this -> installedPackages === null ) { $ installedPackages = [ ] ; $ packageService = $ this -> application -> make ( PackageService :: class ) ; foreach ( $ packageService -> getInstalledHandles ( ) as $ packageHandle ) { $ installedPackages [ $ packageHandle ] = $ packageService -> getClass ( $ packageHandle ) ; } $ this -> installedPackages = $ installedPackages ; } return $ this -> installedPackages ; }
Get the list of installed packages.

@return Package[] keys are package handles, values are Package instances
Get the list of installed packages .