1 Commits

Author SHA1 Message Date
Jürgen Mummert 2970711fc0 Migrate to mummert/newssubmission-bundle namespace 2026-03-08 18:01:52 +01:00
15 changed files with 28 additions and 28 deletions
+2 -2
View File
@@ -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. Contao 5.7 bundle for frontend news submissions with Symfony Forms, FilePond uploads and Altcha for anonymous users.
## Installation ## Installation
1. Bundle als Composer-Paket in das Contao-Projekt einbinden. 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` 3. `ddev exec vendor/bin/contao-console contao:migrate --no-interaction --no-ansi`
4. `ddev exec vendor/bin/contao-console cache:clear --no-ansi` 4. `ddev exec vendor/bin/contao-console cache:clear --no-ansi`
+3 -3
View File
@@ -1,5 +1,5 @@
{ {
"name": "mummert-media/newssubmission-bundle", "name": "mummert/newssubmission-bundle",
"description": "Frontend news submission bundle for Contao 5.7.", "description": "Frontend news submission bundle for Contao 5.7.",
"type": "contao-bundle", "type": "contao-bundle",
"license": "proprietary", "license": "proprietary",
@@ -13,11 +13,11 @@
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"MummertMedia\\NewsSubmissionBundle\\": "src/" "Mummert\\NewsSubmissionBundle\\": "src/"
} }
}, },
"extra": { "extra": {
"contao-manager-plugin": "MummertMedia\\NewsSubmissionBundle\\Contao\\Manager\\Plugin" "contao-manager-plugin": "Mummert\\NewsSubmissionBundle\\Contao\\Manager\\Plugin"
}, },
"config": { "config": {
"allow-plugins": { "allow-plugins": {
+2 -2
View File
@@ -5,13 +5,13 @@ services:
Contao\CoreBundle\Altcha\Altcha: '@contao.altcha' Contao\CoreBundle\Altcha\Altcha: '@contao.altcha'
MummertMedia\NewsSubmissionBundle\: Mummert\NewsSubmissionBundle\:
resource: ../../src/ resource: ../../src/
exclude: exclude:
- ../../src/DependencyInjection/ - ../../src/DependencyInjection/
- ../../src/Contao/Manager/ - ../../src/Contao/Manager/
- ../../src/NewsSubmissionBundle.php - ../../src/NewsSubmissionBundle.php
MummertMedia\NewsSubmissionBundle\Service\UploadManager: Mummert\NewsSubmissionBundle\Service\UploadManager:
arguments: arguments:
$projectDir: '%kernel.project_dir%' $projectDir: '%kernel.project_dir%'
+2 -2
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Contao\Manager; namespace Mummert\NewsSubmissionBundle\Contao\Manager;
use Contao\CoreBundle\ContaoCoreBundle; use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface; use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
@@ -10,7 +10,7 @@ use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface; use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;
use Contao\ManagerPlugin\Routing\RoutingPluginInterface; use Contao\ManagerPlugin\Routing\RoutingPluginInterface;
use Contao\NewsBundle\ContaoNewsBundle; use Contao\NewsBundle\ContaoNewsBundle;
use MummertMedia\NewsSubmissionBundle\NewsSubmissionBundle; use Mummert\NewsSubmissionBundle\NewsSubmissionBundle;
use Symfony\Component\Config\Loader\LoaderResolverInterface; use Symfony\Component\Config\Loader\LoaderResolverInterface;
use Symfony\Component\HttpKernel\KernelInterface; use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Component\Routing\RouteCollection; use Symfony\Component\Routing\RouteCollection;
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Controller; namespace Mummert\NewsSubmissionBundle\Controller;
use Contao\CoreBundle\DependencyInjection\Attribute\AsFrontendModule; use Contao\CoreBundle\DependencyInjection\Attribute\AsFrontendModule;
use Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController; use Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController;
@@ -10,7 +10,7 @@ use Contao\CoreBundle\Twig\FragmentTemplate;
use Contao\ModuleModel; use Contao\ModuleModel;
use Doctrine\DBAL\ArrayParameterType; use Doctrine\DBAL\ArrayParameterType;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
use MummertMedia\NewsSubmissionBundle\Service\NewsContentSanitizer; use Mummert\NewsSubmissionBundle\Service\NewsContentSanitizer;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
+2 -2
View File
@@ -2,10 +2,10 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Controller; namespace Mummert\NewsSubmissionBundle\Controller;
use Contao\CoreBundle\Csrf\ContaoCsrfTokenManager; use Contao\CoreBundle\Csrf\ContaoCsrfTokenManager;
use MummertMedia\NewsSubmissionBundle\Service\UploadManager; use Mummert\NewsSubmissionBundle\Service\UploadManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\File\UploadedFile;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Controller; namespace Mummert\NewsSubmissionBundle\Controller;
use Contao\CoreBundle\Altcha\Altcha; use Contao\CoreBundle\Altcha\Altcha;
use Contao\CoreBundle\Controller\AltchaController; use Contao\CoreBundle\Controller\AltchaController;
@@ -13,11 +13,11 @@ use Contao\CoreBundle\Csrf\ContaoCsrfTokenManager;
use Contao\FrontendUser; use Contao\FrontendUser;
use Contao\ModuleModel; use Contao\ModuleModel;
use Contao\PageModel; use Contao\PageModel;
use MummertMedia\NewsSubmissionBundle\Form\Model\NewsSubmissionData; use Mummert\NewsSubmissionBundle\Form\Model\NewsSubmissionData;
use MummertMedia\NewsSubmissionBundle\Form\NewsSubmissionType; use Mummert\NewsSubmissionBundle\Form\NewsSubmissionType;
use MummertMedia\NewsSubmissionBundle\Service\NewsCreator; use Mummert\NewsSubmissionBundle\Service\NewsCreator;
use MummertMedia\NewsSubmissionBundle\Service\TagProvider; use Mummert\NewsSubmissionBundle\Service\TagProvider;
use MummertMedia\NewsSubmissionBundle\Service\UploadManager; use Mummert\NewsSubmissionBundle\Service\UploadManager;
use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\DependencyInjection; namespace Mummert\NewsSubmissionBundle\DependencyInjection;
use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); 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\Constraints as Assert;
use Symfony\Component\Validator\Context\ExecutionContextInterface; use Symfony\Component\Validator\Context\ExecutionContextInterface;
+2 -2
View File
@@ -2,9 +2,9 @@
declare(strict_types=1); 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\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType; use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType; use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle; namespace Mummert\NewsSubmissionBundle;
use Symfony\Component\HttpKernel\Bundle\Bundle; use Symfony\Component\HttpKernel\Bundle\Bundle;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Service; namespace Mummert\NewsSubmissionBundle\Service;
use Symfony\Component\HtmlSanitizer\HtmlSanitizer; use Symfony\Component\HtmlSanitizer\HtmlSanitizer;
use Symfony\Component\HtmlSanitizer\HtmlSanitizerConfig; use Symfony\Component\HtmlSanitizer\HtmlSanitizerConfig;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Service; namespace Mummert\NewsSubmissionBundle\Service;
use Contao\StringUtil; use Contao\StringUtil;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Service; namespace Mummert\NewsSubmissionBundle\Service;
use Contao\ModuleModel; use Contao\ModuleModel;
use Contao\StringUtil; use Contao\StringUtil;
+1 -1
View File
@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace MummertMedia\NewsSubmissionBundle\Service; namespace Mummert\NewsSubmissionBundle\Service;
use Contao\Dbafs; use Contao\Dbafs;
use Contao\FilesModel; use Contao\FilesModel;