diff --git a/composer.json b/composer.json index 192e4d2..adcf63b 100755 --- a/composer.json +++ b/composer.json @@ -22,8 +22,7 @@ "minimum-stability" : "dev", "require": { "oat-sa/oatbox-extension-installer": "~1.1||dev-master", - "oat-sa/generis" : ">=15.22", - "oat-sa/tao-core" : ">=54.10.0" + "oat-sa/tao-core": ">=54.14.7" }, "autoload" : { "psr-4" : { diff --git a/migrations/Version202406131030273245_taoBackOffice.php b/migrations/Version202406131030273245_taoBackOffice.php new file mode 100644 index 0000000..7de35f7 --- /dev/null +++ b/migrations/Version202406131030273245_taoBackOffice.php @@ -0,0 +1,46 @@ +getServiceManager()->get(SectionVisibilityFilter::SERVICE_ID); + + $sectionVisibilityFilter->hideSectionByFeatureFlag( + 'taoBo_remotelist', + FeatureFlagCheckerInterface::FEATURE_FLAG_SOLAR_DESIGN_ENABLED + ); + $sectionVisibilityFilter->hideSectionByFeatureFlag( + 'taoBo_tree', + FeatureFlagCheckerInterface::FEATURE_FLAG_SOLAR_DESIGN_ENABLED + ); + + $this->getServiceManager()->register(SectionVisibilityFilter::SERVICE_ID, $sectionVisibilityFilter); + } + + public function down(Schema $schema): void + { + throw new IrreversibleMigration(); + } +}