Closed derekisbusy closed 8 years ago
yii2-rbac
repo better so that it can be embedded with any user management module?I have created the repos and given access.
I invited @andrewblake1 to join and contribute as well.
I agree the entire RBAC and MAILER functionality must be moved to separate extension.
Also make this extension as basic as it can be for a simple use case.
What I was thinking is having repos that if they end in 'plugin' then they are considered a plugin of another repo.
OK...can we decide the various plugin components to yii2 user module and define one consistent approach to all plugins.
At this stage let's then focus on the yii2-user
extension first and then enable plugins to be added.
We can remove all other code beyond core user management and make it extensible with the core features. Currently RBAC
and Mailer
can be moved out of this extension and all code related to that can be put into the plugins
.
Probably an advanced better method would be to move Profile
and Social
features to plugins as well.
For plugins:
I have updated additional repos to the following:
yii2-user-rbac-plugin
: For plugging in any RBAC module to yii2-user easily. Can include a default RBAC implementation that can be extended (maybe create a separate yii2-rbac
extension later)yii2-user-mailer-plugin
: For plugging in a mailer feature to yii2-user easily. Can include a default mailer management implementation that can be extended (create a separate yii2-mailer
management extension separately later)I added PLUGINS.md to the yii2-common repo describing my concept of a plugin. Please let me know what you think. I'm still not sure what the best approach would be as far as loading plugins, and whether each pluggable component should have it's own DI container etc. I have two other projects I have to complete so won't be able to add any updates until next week.
Thanks. Just glanced quickly through it and looks fine. Will update on any further ideas after doing some study in detail.
@kartik-v Can you create two new repositories under communityii. I don't have perms to create repos.