org -> unit change, some new functionality

This commit is contained in:
Dennis Eichhorn 2023-01-26 21:54:13 +01:00
parent 005357b5e1
commit 20e7fb2fe0
3 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ final class BackendController extends Controller
$request, $request,
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->orgId, $this->app->unitId,
$this->app->appName $this->app->appName
); );
@ -83,7 +83,7 @@ final class BackendController extends Controller
$request, $request,
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->orgId, $this->app->unitId,
$this->app->appName $this->app->appName
); );
@ -149,7 +149,7 @@ final class BackendController extends Controller
$request, $request,
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->orgId, $this->app->unitId,
$this->app->appName $this->app->appName
); );

View File

@ -46,7 +46,7 @@ final class TimerecordingController extends Controller
$nav = Navigation::getInstance($request, $nav = Navigation::getInstance($request,
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->orgId, $this->app->unitId,
$this->app->appName $this->app->appName
); );
@ -75,7 +75,7 @@ final class TimerecordingController extends Controller
$request, $request,
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->orgId, $this->app->unitId,
$this->app->appName $this->app->appName
); );
@ -137,7 +137,7 @@ final class TimerecordingController extends Controller
$nav = Navigation::getInstance($request, $nav = Navigation::getInstance($request,
$this->app->accountManager->get($request->header->account), $this->app->accountManager->get($request->header->account),
$this->app->dbPool, $this->app->dbPool,
$this->app->orgId, $this->app->unitId,
$this->app->appName $this->app->appName
); );

View File

@ -58,7 +58,7 @@ final class SearchControllerTest extends \PHPUnit\Framework\TestCase
}; };
$this->app->dbPool = $GLOBALS['dbpool']; $this->app->dbPool = $GLOBALS['dbpool'];
$this->app->orgId = 1; $this->app->unitId = 1;
$this->app->accountManager = new AccountManager($GLOBALS['session']); $this->app->accountManager = new AccountManager($GLOBALS['session']);
$this->app->appSettings = new CoreSettings(); $this->app->appSettings = new CoreSettings();
$this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/'); $this->app->moduleManager = new ModuleManager($this->app, __DIR__ . '/../../../../Modules/');