From 2970711fc0f953acd8e47d6db0159513a87dfbcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Mummert?= Date: Sun, 8 Mar 2026 18:01:52 +0100 Subject: [PATCH] Migrate to mummert/newssubmission-bundle namespace --- README.md | 4 ++-- composer.json | 6 +++--- contao/config/services.yaml | 4 ++-- src/Contao/Manager/Plugin.php | 4 ++-- .../EventSubmissionConfirmationModuleController.php | 4 ++-- src/Controller/FilePondUploadController.php | 4 ++-- src/Controller/NewsSubmissionModuleController.php | 12 ++++++------ src/DependencyInjection/NewsSubmissionExtension.php | 2 +- src/Form/Model/NewsSubmissionData.php | 2 +- src/Form/NewsSubmissionType.php | 4 ++-- src/NewsSubmissionBundle.php | 2 +- src/Service/NewsContentSanitizer.php | 2 +- src/Service/NewsCreator.php | 2 +- src/Service/TagProvider.php | 2 +- src/Service/UploadManager.php | 2 +- 15 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 5ef87ac..9699a2b 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# mummert-media/newssubmission-bundle +# mummert/newssubmission-bundle Contao 5.7 bundle for frontend news submissions with Symfony Forms, FilePond uploads and Altcha for anonymous users. ## Installation 1. Bundle als Composer-Paket in das Contao-Projekt einbinden. -2. `composer update mummert-media/newssubmission-bundle` +2. `composer update mummert/newssubmission-bundle` 3. `ddev exec vendor/bin/contao-console contao:migrate --no-interaction --no-ansi` 4. `ddev exec vendor/bin/contao-console cache:clear --no-ansi` diff --git a/composer.json b/composer.json index 5ffe2e7..c1e66bf 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "mummert-media/newssubmission-bundle", + "name": "mummert/newssubmission-bundle", "description": "Frontend news submission bundle for Contao 5.7.", "type": "contao-bundle", "license": "proprietary", @@ -13,11 +13,11 @@ }, "autoload": { "psr-4": { - "MummertMedia\\NewsSubmissionBundle\\": "src/" + "Mummert\\NewsSubmissionBundle\\": "src/" } }, "extra": { - "contao-manager-plugin": "MummertMedia\\NewsSubmissionBundle\\Contao\\Manager\\Plugin" + "contao-manager-plugin": "Mummert\\NewsSubmissionBundle\\Contao\\Manager\\Plugin" }, "config": { "allow-plugins": { diff --git a/contao/config/services.yaml b/contao/config/services.yaml index 6924aff..0b296da 100644 --- a/contao/config/services.yaml +++ b/contao/config/services.yaml @@ -5,13 +5,13 @@ services: Contao\CoreBundle\Altcha\Altcha: '@contao.altcha' - MummertMedia\NewsSubmissionBundle\: + Mummert\NewsSubmissionBundle\: resource: ../../src/ exclude: - ../../src/DependencyInjection/ - ../../src/Contao/Manager/ - ../../src/NewsSubmissionBundle.php - MummertMedia\NewsSubmissionBundle\Service\UploadManager: + Mummert\NewsSubmissionBundle\Service\UploadManager: arguments: $projectDir: '%kernel.project_dir%' diff --git a/src/Contao/Manager/Plugin.php b/src/Contao/Manager/Plugin.php index dba5fb5..7ae41a7 100644 --- a/src/Contao/Manager/Plugin.php +++ b/src/Contao/Manager/Plugin.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Contao\Manager; +namespace Mummert\NewsSubmissionBundle\Contao\Manager; use Contao\CoreBundle\ContaoCoreBundle; use Contao\ManagerPlugin\Bundle\BundlePluginInterface; @@ -10,7 +10,7 @@ use Contao\ManagerPlugin\Bundle\Config\BundleConfig; use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; use Contao\ManagerPlugin\Routing\RoutingPluginInterface; use Contao\NewsBundle\ContaoNewsBundle; -use MummertMedia\NewsSubmissionBundle\NewsSubmissionBundle; +use Mummert\NewsSubmissionBundle\NewsSubmissionBundle; use Symfony\Component\Config\Loader\LoaderResolverInterface; use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\Routing\RouteCollection; diff --git a/src/Controller/EventSubmissionConfirmationModuleController.php b/src/Controller/EventSubmissionConfirmationModuleController.php index c09ebd5..327bd69 100644 --- a/src/Controller/EventSubmissionConfirmationModuleController.php +++ b/src/Controller/EventSubmissionConfirmationModuleController.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Controller; +namespace Mummert\NewsSubmissionBundle\Controller; use Contao\CoreBundle\DependencyInjection\Attribute\AsFrontendModule; use Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController; @@ -10,7 +10,7 @@ use Contao\CoreBundle\Twig\FragmentTemplate; use Contao\ModuleModel; use Doctrine\DBAL\ArrayParameterType; use Doctrine\DBAL\Connection; -use MummertMedia\NewsSubmissionBundle\Service\NewsContentSanitizer; +use Mummert\NewsSubmissionBundle\Service\NewsContentSanitizer; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Controller/FilePondUploadController.php b/src/Controller/FilePondUploadController.php index 73f22a6..ec43773 100644 --- a/src/Controller/FilePondUploadController.php +++ b/src/Controller/FilePondUploadController.php @@ -2,10 +2,10 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Controller; +namespace Mummert\NewsSubmissionBundle\Controller; use Contao\CoreBundle\Csrf\ContaoCsrfTokenManager; -use MummertMedia\NewsSubmissionBundle\Service\UploadManager; +use Mummert\NewsSubmissionBundle\Service\UploadManager; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\JsonResponse; diff --git a/src/Controller/NewsSubmissionModuleController.php b/src/Controller/NewsSubmissionModuleController.php index d99bdfd..fe008d7 100644 --- a/src/Controller/NewsSubmissionModuleController.php +++ b/src/Controller/NewsSubmissionModuleController.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Controller; +namespace Mummert\NewsSubmissionBundle\Controller; use Contao\CoreBundle\Altcha\Altcha; use Contao\CoreBundle\Controller\AltchaController; @@ -13,11 +13,11 @@ use Contao\CoreBundle\Csrf\ContaoCsrfTokenManager; use Contao\FrontendUser; use Contao\ModuleModel; use Contao\PageModel; -use MummertMedia\NewsSubmissionBundle\Form\Model\NewsSubmissionData; -use MummertMedia\NewsSubmissionBundle\Form\NewsSubmissionType; -use MummertMedia\NewsSubmissionBundle\Service\NewsCreator; -use MummertMedia\NewsSubmissionBundle\Service\TagProvider; -use MummertMedia\NewsSubmissionBundle\Service\UploadManager; +use Mummert\NewsSubmissionBundle\Form\Model\NewsSubmissionData; +use Mummert\NewsSubmissionBundle\Form\NewsSubmissionType; +use Mummert\NewsSubmissionBundle\Service\NewsCreator; +use Mummert\NewsSubmissionBundle\Service\TagProvider; +use Mummert\NewsSubmissionBundle\Service\UploadManager; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/DependencyInjection/NewsSubmissionExtension.php b/src/DependencyInjection/NewsSubmissionExtension.php index 70cbeac..0d2f9a9 100644 --- a/src/DependencyInjection/NewsSubmissionExtension.php +++ b/src/DependencyInjection/NewsSubmissionExtension.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\DependencyInjection; +namespace Mummert\NewsSubmissionBundle\DependencyInjection; use Symfony\Component\Config\FileLocator; use Symfony\Component\DependencyInjection\ContainerBuilder; diff --git a/src/Form/Model/NewsSubmissionData.php b/src/Form/Model/NewsSubmissionData.php index 4c7d2db..21c68f4 100644 --- a/src/Form/Model/NewsSubmissionData.php +++ b/src/Form/Model/NewsSubmissionData.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Form\Model; +namespace Mummert\NewsSubmissionBundle\Form\Model; use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\Context\ExecutionContextInterface; diff --git a/src/Form/NewsSubmissionType.php b/src/Form/NewsSubmissionType.php index cce3e53..adac4ad 100644 --- a/src/Form/NewsSubmissionType.php +++ b/src/Form/NewsSubmissionType.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Form; +namespace Mummert\NewsSubmissionBundle\Form; -use MummertMedia\NewsSubmissionBundle\Form\Model\NewsSubmissionData; +use Mummert\NewsSubmissionBundle\Form\Model\NewsSubmissionData; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType; diff --git a/src/NewsSubmissionBundle.php b/src/NewsSubmissionBundle.php index 015b475..c54ecf5 100644 --- a/src/NewsSubmissionBundle.php +++ b/src/NewsSubmissionBundle.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle; +namespace Mummert\NewsSubmissionBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/src/Service/NewsContentSanitizer.php b/src/Service/NewsContentSanitizer.php index 79971eb..3f59f52 100644 --- a/src/Service/NewsContentSanitizer.php +++ b/src/Service/NewsContentSanitizer.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Service; +namespace Mummert\NewsSubmissionBundle\Service; use Symfony\Component\HtmlSanitizer\HtmlSanitizer; use Symfony\Component\HtmlSanitizer\HtmlSanitizerConfig; diff --git a/src/Service/NewsCreator.php b/src/Service/NewsCreator.php index e5d0361..7ed6d91 100644 --- a/src/Service/NewsCreator.php +++ b/src/Service/NewsCreator.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Service; +namespace Mummert\NewsSubmissionBundle\Service; use Contao\StringUtil; use Doctrine\DBAL\Connection; diff --git a/src/Service/TagProvider.php b/src/Service/TagProvider.php index cc76ccc..330b437 100644 --- a/src/Service/TagProvider.php +++ b/src/Service/TagProvider.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Service; +namespace Mummert\NewsSubmissionBundle\Service; use Contao\ModuleModel; use Contao\StringUtil; diff --git a/src/Service/UploadManager.php b/src/Service/UploadManager.php index 588fdd3..299e96a 100644 --- a/src/Service/UploadManager.php +++ b/src/Service/UploadManager.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace MummertMedia\NewsSubmissionBundle\Service; +namespace Mummert\NewsSubmissionBundle\Service; use Contao\Dbafs; use Contao\FilesModel;