You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance the plugin configuration to explicitly define plugin dependencies using a depends_on attribute. The framework will automatically order plugins based on these dependencies, ensuring correct load sequences and eliminating ambiguity in plugin relationships.
Problem
Currently, plugins are loaded in the order they are declared within the Config.Plugins. However, there is no explicit indication of whether a plugin depends on another plugin or whether the order is chosen arbitrarily. This can lead to confusion for developers and potential errors when reordering plugins or introducing new ones. For instance, plugin X might depend on plugin Y, but the lack of an explicit declaration makes it unclear why X must follow Y.
Proposal
Detailed Description
Introduce a depends_on Attribute:
Each plugin class in Config.Plugins can include a depends_on attribute, listing the other plugins it depends on.
Summary
Enhance the plugin configuration to explicitly define plugin dependencies using a
depends_on
attribute. The framework will automatically order plugins based on these dependencies, ensuring correct load sequences and eliminating ambiguity in plugin relationships.Problem
Currently, plugins are loaded in the order they are declared within the
Config.Plugins
. However, there is no explicit indication of whether a plugin depends on another plugin or whether the order is chosen arbitrarily. This can lead to confusion for developers and potential errors when reordering plugins or introducing new ones. For instance, plugin X might depend on plugin Y, but the lack of an explicit declaration makes it unclear why X must follow Y.Proposal
Detailed Description
Introduce a
depends_on
Attribute:Config.Plugins
can include adepends_on
attribute, listing the other plugins it depends on.Automatic Ordering of Plugins:
depends_on
attributes and automatically reorder plugins to satisfy the dependency graph.Validation and Error Logging:
depends_on
are present and enabled.Backward Compatibility Notes
depends_on
attribute is defined, plugins will be loaded in the order they are declared, preserving current behavior.The text was updated successfully, but these errors were encountered: