Deployment Packages Pool class
Definition at line 17 of file PackagePool.php.
◆ __construct()
PackagePool constructor
- Parameters
-
Definition at line 51 of file PackagePool.php.
56 $this->collector = $collector;
57 $themeCollection->clear()->resetConstraints();
58 $this->themes = $themeCollection->getItems();
59 $this->packageFactory = $packageFactory;
◆ getPackage()
- Parameters
-
- Returns
- Package|null
Definition at line 66 of file PackagePool.php.
69 return isset($this->packages[
$path]) ? $this->packages[
$path] :
null;
◆ getPackages()
◆ getPackagesForDeployment()
getPackagesForDeployment |
( |
array |
$options | ) |
|
- Parameters
-
- Returns
- Package[]
Definition at line 99 of file PackagePool.php.
102 $this->ensurePackagesForRequiredLocales(
$options);
106 foreach ($this->packages as
$path => $package) {
107 if ($this->checkPackageSkip($package,
$options)) {
108 $toSkip[
$path] = $package;
111 $toDeploy[
$path] = $package;
115 foreach ($toSkip as
$path => $package) {
116 if (!$this->isAncestorForDeployedPackages($package, $toDeploy)) {
117 unset($this->packages[
$path]);
121 return $this->packages;
◆ getThemeModel()
getThemeModel |
( |
|
$areaCode, |
|
|
|
$themePath |
|
) |
| |
- Parameters
-
string | $areaCode | |
string | $themePath | |
- Returns
- ThemeInterface|null
Definition at line 86 of file PackagePool.php.
88 $theme = $this->getThemeByFullPath($areaCode .
'/' . $themePath);
90 $theme->setThemePath($themePath);
The documentation for this class was generated from the following file: