pass logger to contructor of SeedDMS_ExtBase

This commit is contained in:
Uwe Steinmann 2021-02-04 10:41:16 +01:00
parent 5210d756e9
commit 15a4d3195b
2 changed files with 4 additions and 2 deletions

View File

@ -31,9 +31,11 @@
class SeedDMS_ExtBase {
var $settings;
var $dms;
var $logger;
public function __construct($settings, $dms) {
public function __construct($settings, $dms, $logger) {
$this->settings = $settings;
$this->dms = $dms;
$this->logger = $logger;
}
}

View File

@ -43,7 +43,7 @@ foreach($extMgr->getExtensionConfiguration() as $extname=>$extconf) {
$classfile = $settings->_rootDir."/ext/".$extname."/".$extconf['class']['file'];
if(file_exists($classfile)) {
include($classfile);
$obj = new $extconf['class']['name']($settings, null);
$obj = new $extconf['class']['name']($settings, null, $logger);
if(method_exists($obj, 'init'))
$obj->init();
}