Add Symfony admin configuration stack (controller, form, service, routing, whitelist) #732
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
config/allowed_files.phpso the module cleanup mechanism does not remove them.Description
src/Controller/Admin/EverblockConfigurationController.phpthat renders and processes a Symfony form and redirects back on success. It usesEverblockConfigurationManagerandTranslatorInterface.src/Form/Type/EverblockConfigurationType.phpusingTranslateType,TextTypeandIntegerTypewith validation constraints for key configuration inputs.src/Service/Configuration/EverblockConfigurationManager.phpwhich usesConfigurationAdapter,ShopContextandLanguageDataProviderto read/update multishop and multilanguage configuration safely.config/routes.yml(routeeverblock_admin_configuration) and updatedconfig/services.ymlto autowire the newController,FormandService/Configurationnamespaces. The route includes_legacy_controller/_legacy link to preserve permissions/legacy tab behavior.config/allowed_files.phpto include all newly added files and the new route file plus the Twig template atviews/templates/admin/symfony/configuration.html.twig.src/Controller/index.php,src/Controller/Admin/index.php,src/Form/index.php,src/Form/Type/index.php,src/Service/Configuration/index.php, and a Twig template for the new admin form.Testing
config/allowed_files.phpupdates was performed during the rollout.Codex Task