protected function setFrontendUserAspect(Context $context, AbstractUserAuthentication $user)
    {
        $context->setAspect('frontend.user', GeneralUtility::makeInstance(UserAspect::class, $user));
    }
protected function setFrontendUserAspect(Context $context, AbstractUserAuthentication $user)
    {
        $context->setAspect('frontend.user', GeneralUtility::makeInstance(UserAspect::class, $user));
    }
protected function setFrontendUserAspect ( Context $ context , AbstractUserAuthentication $ user ) { $ context -> setAspect ( 'frontend.user' , GeneralUtility :: makeInstance ( UserAspect :: class , $ user ) ) ; }
Register the frontend user as aspect

@param Context $context
@param AbstractUserAuthentication $user
Register the frontend user as aspect