protected function setBackendUserAspect(Context $context, BackendUserAuthentication $user)
    {
        $context->setAspect('backend.user', GeneralUtility::makeInstance(UserAspect::class, $user));
        $context->setAspect('workspace', GeneralUtility::makeInstance(WorkspaceAspect::class, $user->workspace));
    }
protected function setBackendUserAspect(Context $context, BackendUserAuthentication $user)
    {
        $context->setAspect('backend.user', GeneralUtility::makeInstance(UserAspect::class, $user));
        $context->setAspect('workspace', GeneralUtility::makeInstance(WorkspaceAspect::class, $user->workspace));
    }
protected function setBackendUserAspect ( Context $ context , BackendUserAuthentication $ user ) { $ context -> setAspect ( 'backend.user' , GeneralUtility :: makeInstance ( UserAspect :: class , $ user ) ) ; $ context -> setAspect ( 'workspace' , GeneralUtility :: makeInstance ( WorkspaceAspect :: class , $ user -> workspace ) ) ; }
Register the backend user as aspect

@param Context $context
@param BackendUserAuthentication|null $user
Register the backend user as aspect