LEtudiant\Composer\Installer\Config\SharedPackageInstallerConfig::getPackageList PHP Метод

getPackageList() публичный Метод

public getPackageList ( ) : array
Результат array
    public function getPackageList()
    {
        return $this->packageList;
    }

Usage Example

 /**
  * @param SharedPackageInstallerConfig $config
  */
 public function __construct(SharedPackageInstallerConfig $config)
 {
     $packageList = $config->getPackageList();
     foreach ($packageList as $packageName) {
         if ('*' === $packageName) {
             $this->areAllShared = true;
         }
     }
     if (!$this->areAllShared) {
         $this->packageCallbacks = $this->createCallbacks($packageList);
     }
 }