protected createContext ( string $workspaceName ) : |
||
$workspaceName | string | Name of the current workspace |
리턴 |
protected function createContext($workspaceName)
{
$contextProperties = array('workspaceName' => $workspaceName);
$currentDomain = $this->domainRepository->findOneByActiveRequest();
if ($currentDomain !== null) {
$contextProperties['currentSite'] = $currentDomain->getSite();
$contextProperties['currentDomain'] = $currentDomain;
}
return $this->contextFactory->create($contextProperties);
}