I can't figure out how to get the current user in PHP. I see a function called getUser in the Espo core files, but I my code is running in a hook, so I need to somehow use dependency injection to get access to the current user object. How can I do this?
How to get the current user in PHP
Collapse
X

Comment