In a symfony 5.0 application I need to integrate a filemanager that provides basic file handling for users.
Each user is only allowed to manage files in his specific user folder which (obviously) is not in the public folder but at some path like
../data/images/[user_id]/
The filemanager of my choice needs this one path as a parameter to do it's magic.
How can I define access rules in symfony to define this behaviour to grant access to a specific but dynamic path which depends on the currently logged in user?