Isolate plugin class via namespaces #104

Open
opened 2025-09-19 11:03:07 +02:00 by kazhnuz · 3 comments
Owner

Maybe not possible, but it would be nice to isolate plugins via namespace, to avoid name conflicts related due to same plugin names

Maybe not possible, but it would be nice to isolate plugins via namespace, to avoid name conflicts related due to same plugin names
Author
Owner

Looks like get_declared_classes(); don't count namespace classes, might need some rework of the plugin system : https://stackoverflow.com/questions/22761554/how-to-get-all-class-names-inside-a-particular-namespace

Looks like `get_declared_classes();` don't count namespace classes, might need some rework of the plugin system : https://stackoverflow.com/questions/22761554/how-to-get-all-class-names-inside-a-particular-namespace
Author
Owner

Looks like this post disagree, I'll have to try myself to see : https://stackoverflow.com/questions/5225971/is-it-possible-to-get-list-of-defined-namespaces

Looks like this post disagree, I'll have to try myself to see : https://stackoverflow.com/questions/5225971/is-it-possible-to-get-list-of-defined-namespaces
Author
Owner

Looks like imports works well, but it'll have the following issues :

  • The namespaced plugin will need to have classes from the global namespace handled with use or prefixed witt \
  • The theme plugin needs to have its complete classe with namespace in the theme metadata
Looks like imports works well, but it'll have the following issues : - The namespaced plugin will need to have classes from the global namespace handled with use or prefixed witt `\` - The theme plugin needs to have its complete classe with namespace in the theme metadata
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
koblog/koblog#104
No description provided.