diff --git a/Classes/Infrastructure/Healthcheck/SiteHealthcheck.php b/Classes/Infrastructure/Healthcheck/SiteHealthcheck.php index 36761e1..4fbb133 100644 --- a/Classes/Infrastructure/Healthcheck/SiteHealthcheck.php +++ b/Classes/Infrastructure/Healthcheck/SiteHealthcheck.php @@ -43,13 +43,12 @@ public function execute(HealthcheckEnvironment $environment): Health } if (!$environment->isSafeToLeakTechnicalDetails()) { - // TODO adjust to 9.0 - return new Health('No Neos site was created. Please visit the documentation how setup a site.', Status::WARNING()); + return new Health('No Neos site was created. Please look into {{flowCommand}} site:importall or {{flowCommand}} site:create.', Status::WARNING()); } $availableSitePackagesToBeImported = []; foreach ($this->packageManager->getFilteredPackages('available', 'neos-site') as $sitePackage) { - $possibleSiteContentToImport = sprintf('resource://%s/Private/Content/events.jsonl', $sitePackage->getPackageKey()); + $possibleSiteContentToImport = sprintf('resource://%s/Private/Content', $sitePackage->getPackageKey()); if (file_exists($possibleSiteContentToImport)) { $availableSitePackagesToBeImported[] = $sitePackage->getPackageKey(); } @@ -57,7 +56,6 @@ public function execute(HealthcheckEnvironment $environment): Health if (count($availableSitePackagesToBeImported) === 0) { if (!$this->packageManager->isPackageAvailable('Neos.SiteKickstarter')) { - // TODO adjust to 9.0 return new Health(<<composer require neos/site-kickstarter. Or you can create a new site package completely from scratch via {{flowCommand}} package:create My.Site --package-type=neos-site. @@ -66,24 +64,17 @@ public function execute(HealthcheckEnvironment $environment): Health MSG, Status::WARNING()); } - // TODO adjust to 9.0 return new Health(<<{{flowCommand}} kickstart:site My.Site my-site - and import it via {{flowCommand}} site:import --package-key My.Site + No Neos site was created. You can kickstart a new site package via {{flowCommand}} kickstart:site My.Site + and use it to create a site via {{flowCommand}} site:create my-site My.Site My.Site:Document.Homepage MSG, Status::WARNING()); } - if (count($availableSitePackagesToBeImported) === 1 && $availableSitePackagesToBeImported[0] === 'Neos.Demo') { - // TODO adjust to 9.0 (make less specific to neos demo) - return new Health(<<{{flowCommand}} site:create neosdemo Neos.Demo Neos.Demo:Document.Homepage and {{flowCommand}} cr:prune and {{flowCommand}} cr:import resource://Neos.Demo/Private/Content - MSG, Status::WARNING()); - } - - // TODO adjust to 9.0 - $availableSitePackages = join(', ', $availableSitePackagesToBeImported); - return new Health(<<{{flowCommand}} site:importall --package-key %1$s.%2$s', + $firstAvailableSitePackageKey, + $availableSitePackagesToBeImported === [] ? '' : sprintf(' Or import one of the other available site packages: %s', join(', ', $availableSitePackagesToBeImported)) + ), Status::WARNING()); } } diff --git a/Classes/Infrastructure/ImageHandler/ImageHandlerService.php b/Classes/Infrastructure/ImageHandler/ImageHandlerService.php index f846242..8a71190 100644 --- a/Classes/Infrastructure/ImageHandler/ImageHandlerService.php +++ b/Classes/Infrastructure/ImageHandler/ImageHandlerService.php @@ -49,6 +49,7 @@ class ImageHandlerService public function __construct() { // + // FIXME: It seems there is this hack and in the image factory there is a hack too now (: https://github.com/neos/imagine/pull/11 // Hack. We instantiate the unproxied class without injected settings. // This is to allow to still reconfigure the image driver, even if it is disabled. // The "driver" Gd for Imagine must be enabled by settings, check Neos.Imagine.enabledDrivers. Or use ./flow setup:imagehandler