Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Overwrite or new plugin

Started by Muut Archive 11 years ago · 2 replies · 353 views
11 years ago

I have extended the default login plugin to include LDAP support for authorization via Active Directory.

However If ever I update the plugin, my code will be gone. Ideally, i should make a new plugin that overrides the other, but I'm not sure how to do it to ensure future compatibility.

is there a 'correct' way to override the functions of one plugin with another?

11 years ago

If you feel that this is something that could be 'added' to the current login plugin, perhaps you could add support to the regular plugin with some configuration options to enable/configure it.

Just submit a pull request on that project in Github.

11 years ago

That's probably the best idea. I'll clean up the code and make a request.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4061 9 years ago
Archive · by Muut Archive, 9 years ago
1 2948 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago