Skip to content

Commit 4b08ff4

Browse files
committed
adjust sync command to also check standalone cake packages for version
1 parent 63eb781 commit 4b08ff4

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/Command/SyncPackagesCommand.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,30 @@ private function getTagsForPackage(string $packageName): array
117117
$cakephpRequire = $versionMeta->getRequire()['cakephp/cakephp'] ?? null;
118118
if ($cakephpRequire) {
119119
$meta = $this->checkCakeVersion($meta, $cakephpRequire);
120+
} else {
121+
// Cake has standalone sub-packages
122+
$subpackages = [
123+
'cakephp/cache',
124+
'cakephp/collection',
125+
'cakephp/console',
126+
'cakephp/database',
127+
'cakephp/datasource',
128+
'cakephp/event',
129+
'cakephp/form',
130+
'cakephp/http',
131+
'cakephp/i18n',
132+
'cakephp/log',
133+
'cakephp/orm',
134+
'cakephp/utility',
135+
'cakephp/validation',
136+
];
137+
138+
foreach ($subpackages as $subpackage) {
139+
$cakephpRequire = $versionMeta->getRequire()[$subpackage] ?? null;
140+
if ($cakephpRequire) {
141+
$meta = $this->checkCakeVersion($meta, $cakephpRequire);
142+
}
143+
}
120144
}
121145
}
122146

0 commit comments

Comments
 (0)