namespace Friendica\Module;
-use Friendica\App;
+use Friendica\App\Arguments;
+use Friendica\App\BaseURL;
+use Friendica\App\Mode;
+use Friendica\AppHelper;
use Friendica\BaseModule;
use Friendica\Core;
use Friendica\Core\Config\ValueObject\Cache;
+use Friendica\Core\Installer;
use Friendica\Core\L10n;
use Friendica\Core\Renderer;
use Friendica\Core\Theme;
private $currentWizardStep;
/**
- * @var Core\Installer The installer
+ * @var Installer The installer
*/
private $installer;
- /** @var App */
- protected $app;
- /** @var App\Mode */
+ /** @var AppHelper */
+ protected $appHelper;
+ /** @var Mode */
protected $mode;
- public function __construct(App $app, BasePath $basePath, App\Mode $mode, L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, Core\Installer $installer, array $server, array $parameters = [])
+ public function __construct(AppHelper $appHelper, BasePath $basePath, Mode $mode, L10n $l10n, BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, Installer $installer, array $server, array $parameters = [])
{
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
- $this->app = $app;
+ $this->appHelper = $appHelper;
$this->mode = $mode;
$this->installer = $installer;
}
// get basic installation information and save them to the config cache
- $configCache = $this->app->getConfigCache();
+ $configCache = $this->appHelper->getConfigCache();
$this->installer->setUpCache($configCache, $basePath->getPath());
// We overwrite current theme css, because during install we may not have a working mod_rewrite
protected function post(array $request = [])
{
- $configCache = $this->app->getConfigCache();
+ $configCache = $this->appHelper->getConfigCache();
switch ($this->currentWizardStep) {
case self::SYSTEM_CHECK:
protected function content(array $request = []): string
{
- $configCache = $this->app->getConfigCache();
+ $configCache = $this->appHelper->getConfigCache();
$output = '';