-
-
Notifications
You must be signed in to change notification settings - Fork 3
Description
In the models of the current component there is code that is specific for handling a WordPress source. The Project Brief however states:
This tool supports a flexible, extensible plugin system. Each migration source (e.g., WordPress) is handled by a dedicated plugin triggered by Joomla events.
You can easily create custom plugins to support other CMS platforms or proprietary data formats.
Having WordPress specific code in the component's models means that those models have to be updated when another source CMS is added. That is against the open-closed principle. A (typically Joomla) solution would be to put all WordPress specific code in a plugin. That can be in the same WordPress plugin you have now or (when it is handling a different aspect of the migration) by making another plugin for these adjustments.
Of course it is OK to have the current WordPress specific code temporarily in the component, as a proof of concept. But in the long run architectural considerations have to be guarded too.