refactor: Fix initialization errors.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-06-13 08:02:42 +02:00
parent fbe0e37c17
commit ef73720d2b
5 changed files with 55 additions and 69 deletions

View File

@@ -48,10 +48,8 @@ abstract class ModuleBase
* @param \SP\Core\Application $application
* @param \SP\Core\ProvidersHelper $providersHelper
*/
public function __construct(
Application $application,
ProvidersHelper $providersHelper
) {
public function __construct(Application $application, ProvidersHelper $providersHelper)
{
$this->config = $application->getConfig();
$this->configData = $this->config->getConfigData();
$this->context = $application->getContext();
@@ -59,7 +57,7 @@ abstract class ModuleBase
$this->providersHelper = $providersHelper;
}
abstract public function initialize(string $controller);
abstract public function initialize(string $controller): void;
/**
* Initializes event handlers