Situation: I want to build “core” plugin that does login and permission based on type of user that joined the system so let’s say
MainPlugin -> and all urls should be domain.com/main-plugin/* and we check if he’s logged in do all cool stuff.
Now I want to have for example SecondPlugin and ThirdPlugin that may both or just one of them be in a project depending on client needs.
And here’s the issues I want ALL requests that are done to Second/Third plugin controller to go through my MainPlugin AppController so they always have all user validation done
so when user goes to /second-plugin/workers/index -> first it’s processed by main-plugin and THEN it’s filtered by second-plugin.
I hope it’s clear enough, basically I want to attach as many of plugins that do their own thing and keep them separate from core plugin on which they are depended which is performing all necessary user permission magic so I do not have to copy into them any single line related to checking logged user.
And hello to everyone:) since I believe this is my first post