WebviepUserService
in package
Lightweight domain service to centralize user/authorization checks.
Table of Contents
Methods
- assertCanEditBooth() : void
- Ensure the given user can edit the booth.
- getCurrentUserId() : WebviepUserId|null
- Utility to fetch the current user as a domain id.
Methods
assertCanEditBooth()
Ensure the given user can edit the booth.
public
assertCanEditBooth(Booth $booth, WebviepUserId $actor) : void
Parameters
- $booth : Booth
- $actor : WebviepUserId
getCurrentUserId()
Utility to fetch the current user as a domain id.
public
getCurrentUserId() : WebviepUserId|null