Hi everybody,
I am trying to find a good solution for a following use case without overengineering it: I have generic stuff, that is currently sitting in the root scope. I also have user session-related stuff, which is currently in
SCOPE_USER
. This scope is created when user logs in and I close it on logout. There is a custom
by injectUser()
function to inject things from this scope for convenience.
Question: is it possible to link
SCOPE_USER
to root when it is created and close it when user logs out? Or should I rather create another
SCOPE_GENERAL
for all the stuff, that is currently in root and then link
SCOPE_USER
to it? This would require to inject from a scope -> custom
by injectGeneric()
function. Ideally linking stuff to root scope would be ideal, but I do no see a way to do it. Or should I rather keep things as they are?
Many thanks for any ideas in advance!