Migrate IContentDefinitionEventHandler
to the new IContentDefinitionHandler
#16926
Labels
Milestone
IContentDefinitionEventHandler
to the new IContentDefinitionHandler
#16926
Currently, the
IContentDefinitionEventHandler
interface introduces events that are triggered by theContentDefinitionService
. However, this service is primarily intended for use by controllers, and while it’s acceptable to retain it "if needed," it should not be responsible for triggering event handlers.To improve consistency and ensure proper separation of concerns, all content definition events should be triggered by the
ContentDefinitionManager
, which is better suited for managing content definitions. Moving forward, theContentDefinitionManager
should be responsible for invoking events and continue using theIContentDefinitionHandler
interface.To streamline this process, the
IContentDefinitionEventHandler
interface and its associated events should be marked as obsolete. This approach ensures that event handling is centralized in theContentDefinitionManager
, leading to better maintainability and cleaner architecture.The text was updated successfully, but these errors were encountered: