mirror of
https://github.com/Karaka-Management/oms-Shop.git
synced 2026-01-11 18:48:41 +00:00
org -> unit change, some new functionality
This commit is contained in:
parent
84512219ef
commit
f56e6ddcac
|
|
@ -143,7 +143,7 @@ final class Application
|
||||||
$this->app->eventManager = new EventManager($this->app->dispatcher);
|
$this->app->eventManager = new EventManager($this->app->dispatcher);
|
||||||
$this->app->accountManager = new AccountManager($this->app->sessionManager);
|
$this->app->accountManager = new AccountManager($this->app->sessionManager);
|
||||||
$this->app->l11nServer = LocalizationMapper::get()->where('id', 1)->execute();
|
$this->app->l11nServer = LocalizationMapper::get()->where('id', 1)->execute();
|
||||||
$this->app->orgId = $this->getApplicationOrganization($request, $this->config['app']);
|
$this->app->unitId = $this->getApplicationOrganization($request, $this->config['app']);
|
||||||
|
|
||||||
$aid = Auth::authenticate($this->app->sessionManager);
|
$aid = Auth::authenticate($this->app->sessionManager);
|
||||||
$request->header->account = $aid;
|
$request->header->account = $aid;
|
||||||
|
|
@ -174,7 +174,7 @@ final class Application
|
||||||
$pageView = new ShopView($this->app->l11nManager, $request, $response);
|
$pageView = new ShopView($this->app->l11nManager, $request, $response);
|
||||||
$head = new Head();
|
$head = new Head();
|
||||||
|
|
||||||
$pageView->setData('orgId', $this->app->orgId);
|
$pageView->setData('unitId', $this->app->unitId);
|
||||||
$pageView->setData('head', $head);
|
$pageView->setData('head', $head);
|
||||||
$response->set('Content', $pageView);
|
$response->set('Content', $pageView);
|
||||||
|
|
||||||
|
|
@ -213,7 +213,7 @@ final class Application
|
||||||
$request->getData('CSRF'),
|
$request->getData('CSRF'),
|
||||||
$request->getRouteVerb(),
|
$request->getRouteVerb(),
|
||||||
$this->app->appName,
|
$this->app->appName,
|
||||||
$this->app->orgId,
|
$this->app->unitId,
|
||||||
$account,
|
$account,
|
||||||
$request->getData()
|
$request->getData()
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user