iterateOverApps example

private readonly AbstractAppLifecycle $appLifecycle
    ) {
    }

    /** * @param array<string> $installAppNames - Apps that should be installed * * @return list<array{manifest: Manifest, exception: \Exception}> */
    public function doRefreshApps(bool $activateInstalled, Context $context, array $installAppNames = []): array
    {
        return $this->appLifecycleIterator->iterateOverApps($this->appLifecycle, $activateInstalled$context$installAppNames);
    }

    public function getRefreshableAppInfo(Context $context): RefreshableAppDryRun
    {
        $appInfo = new RefreshableAppDryRun();

        $this->appLifecycleIterator->iterateOverApps($appInfo, false, $context);

        return $appInfo;
    }
}
Home | Imprint | This part of the site doesn't use cookies.