remove check for FormManager < 5

This commit is contained in:
Daniel Seifert 2024-05-13 15:53:13 +02:00
parent f6a9105e25
commit fb8e3cc06a

View File

@ -19,7 +19,6 @@ use D3\DataWizardTasks\Application\Model\Actions\FixWysiwygSpecialChars;
use D3\DataWizardTasks\Application\Model\Exports\DestroyedWysiwygSpecialChars;
use D3\DataWizardTasks\Application\Model\Exports\InactiveCategories;
use D3\DataWizardTasks\Application\Model\Exports\KeyFigures;
use FormManager\Builder;
use FormManager\Factory;
class Configuration extends Configuration_parent
@ -32,8 +31,8 @@ class Configuration extends Configuration_parent
$this->registerAction( ConfigurationParent::GROUP_CMS, oxNew( FixWysiwygSpecialChars::class));
$this->registerExport( ConfigurationParent::GROUP_CATEGORY, oxNew( InactiveCategories::class));
// incompatible FormManager 5.x
if (false === class_exists(Builder::class) && class_exists(Factory::class)) {
// FormManager
if (class_exists(Factory::class)) {
$this->registerExport( ConfigurationParent::GROUP_SHOP, oxNew( KeyFigures::class ) );
}
$this->registerExport( ConfigurationParent::GROUP_CMS, oxNew( DestroyedWysiwygSpecialChars::class));