mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [MOD] Code refactoring by enforcing type checks (WIP)
* [MOD] Update dependencies Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
|
||||
namespace SP\Modules\Web\Controllers;
|
||||
|
||||
use DI\DependencyException;
|
||||
use DI\NotFoundException;
|
||||
use Exception;
|
||||
use SP\Core\Exceptions\SPException;
|
||||
use SP\Core\Language;
|
||||
@@ -45,7 +47,8 @@ final class InstallController extends ControllerBase
|
||||
use JsonTrait;
|
||||
|
||||
/**
|
||||
* indexAction
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@@ -69,9 +72,11 @@ final class InstallController extends ControllerBase
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs sysPass installation
|
||||
* @return bool
|
||||
* @throws DependencyException
|
||||
* @throws NotFoundException
|
||||
*/
|
||||
public function installAction()
|
||||
public function installAction(): bool
|
||||
{
|
||||
$installData = new InstallData();
|
||||
$installData->setSiteLang($this->request->analyzeString('sitelang', 'en_US'));
|
||||
|
||||
Reference in New Issue
Block a user