mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add logger, conversionmgr, authenticator, etc to container
This commit is contained in:
parent
e30032f028
commit
d291c18eab
10
index.php
10
index.php
|
@ -53,11 +53,19 @@ if(true) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
$app = new \Slim\App($c);
|
$app = new \Slim\App($c);
|
||||||
|
$container = $app->getContainer();
|
||||||
|
$container['dms'] = $dms;
|
||||||
|
$container['config'] = $settings;
|
||||||
|
$container['conversionmgr'] = $conversionmgr;
|
||||||
|
$container['logger'] = $logger;
|
||||||
|
$container['fulltextservice'] = $fulltextservice;
|
||||||
|
$container['notifier'] = $notifier;
|
||||||
|
$container['authenticator'] = $authenticator;
|
||||||
|
|
||||||
if(isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
|
if(isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
|
||||||
foreach($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) {
|
foreach($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) {
|
||||||
if (method_exists($hookObj, 'addRoute')) {
|
if (method_exists($hookObj, 'addRoute')) {
|
||||||
$hookObj->addRoute(array('dms'=>$dms, 'app'=>$app, 'settings'=>$settings));
|
$hookObj->addRoute(array('dms'=>$dms, 'app'=>$app, 'settings'=>$settings, 'conversionmgr'=>$conversionmgr, 'authenticator'=>$authenticator, 'fulltextservice'=>$fulltextservice, 'logger'=>$logger));
|
||||||
// } else {
|
// } else {
|
||||||
// include("inc/inc.Authentication.php");
|
// include("inc/inc.Authentication.php");
|
||||||
// if (method_exists($hookObj, 'addRouteAfterAuthentication')) {
|
// if (method_exists($hookObj, 'addRouteAfterAuthentication')) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user