/** * Install assets from modules. * * @return void */ public function installAction() { $assetsManager = new Manager($this->getDI(), false); $assetsManager->installAssets(PUBLIC_PATH . '/themes/' . Settings::getSetting('system_theme')); print ConsoleUtil::success('Assets successfully installed.') . PHP_EOL; }
/** * Save finish form action. * * @return ResponseInterface * * @Route("/save", methods={"GET"}, name="install-save") */ public function saveAction() { if (!$this->_isPassed('finishAction')) { return $this->_selectAction(); } foreach ($this->_actions as $action) { $this->_setPassed($action, false); } $this->_setupDatabase(); $this->config->offsetSet('installed', true); $packageManager = new PackageManager(Package::find()); $packageManager->generateMetadata(); $assetsManager = new AssetManager($this->getDI(), false); $assetsManager->clear(true, PUBLIC_PATH . '/themes/' . Settings::getSetting('system_theme')); return $this->response->redirect(); }