Skip to content

Commit

Permalink
TASK: Adjust to api changes in Neos 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Mar 29, 2022
1 parent e462811 commit 232fc45
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Classes/Service/PackageKeyTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,15 @@ protected function getDefaultSitePackageKey()
*/
protected function getActiveSitePackageKeys(): array
{
$sitePackages = $this->packageManager->getFilteredPackages('available', null, 'neos-site');
/**
* Adjust to a breaking api change in neos 8
* @todo remove once Neos 7 Support is dropped
*/
if (version_compare(FLOW_VERSION_BRANCH, '8.0') >= 0) {
$sitePackages = $this->packageManager->getFilteredPackages('available', 'neos-site');
} else {
$sitePackages = $this->packageManager->getFilteredPackages('available', null, 'neos-site');
}
$sitePackageKeys = [];
foreach ($sitePackages as $sitePackage) {
$packageKey = $sitePackage->getPackageKey();
Expand Down

0 comments on commit 232fc45

Please sign in to comment.