mirror of
https://github.com/Karaka-Management/oms-Search.git
synced 2026-01-11 18:48:41 +00:00
org -> unit change, some new functionality
This commit is contained in:
parent
6209dcc769
commit
7a70cbc389
|
|
@ -63,7 +63,7 @@ final class ApiController extends Controller
|
||||||
$request->getData('CSRF'),
|
$request->getData('CSRF'),
|
||||||
$request->getRouteVerb(),
|
$request->getRouteVerb(),
|
||||||
$this->app->appName,
|
$this->app->appName,
|
||||||
$this->app->orgId,
|
$this->app->unitId,
|
||||||
$this->app->accountManager->get($request->header->account)
|
$this->app->accountManager->get($request->header->account)
|
||||||
),
|
),
|
||||||
$request,
|
$request,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ final class ApiControllerTest 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/');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user