* [ADD] Unit testing. Work in progress

* [MOD] Code refactoring
* [MOD] Make classes final for performance improvements and avoid some side behaviours
This commit is contained in:
nuxsmin
2018-07-28 19:15:11 +02:00
parent d0056d74a8
commit 3e26a1df71
367 changed files with 1774 additions and 1251 deletions

View File

@@ -34,7 +34,7 @@ use SP\Services\Upgrade\UpgradeAppService;
use SP\Services\Upgrade\UpgradeDatabaseService;
use SP\Services\Upgrade\UpgradeUtil;
use SP\Storage\Database\Database;
use SP\Storage\Database\DBUtil;
use SP\Storage\Database\DatabaseUtil;
use SP\Util\HttpUtil;
/**
@@ -57,6 +57,7 @@ class Init extends ModuleBase
* Module constructor.
*
* @param Container $container
*
* @throws \DI\DependencyException
* @throws \DI\NotFoundException
*/
@@ -70,6 +71,7 @@ class Init extends ModuleBase
/**
* @param string $controller
*
* @throws InitializationException
* @throws \DI\DependencyException
* @throws \DI\NotFoundException
@@ -105,7 +107,7 @@ class Init extends ModuleBase
$this->checkUpgrade();
// Checks if the database is set up
DBUtil::checkDatabaseExist($this->container->get(Database::class)->getDbHandler(), $this->configData->getDbName());
DatabaseUtil::checkDatabaseExist($this->container->get(Database::class)->getDbHandler(), $this->configData->getDbName());
// Initialize event handlers
$this->initEventHandlers();