From ac84138d99c93b3e94482ea015f09972762e8c6e Mon Sep 17 00:00:00 2001 From: Ingolf Steinhardt Date: Wed, 17 Jun 2026 21:28:26 +0200 Subject: [PATCH] Fix list controller annotations --- .../Controller/ContentElement/ItemListController.php | 8 ++++---- .../Controller/FrontendModule/ItemListController.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CoreBundle/Controller/ContentElement/ItemListController.php b/src/CoreBundle/Controller/ContentElement/ItemListController.php index e1f25becd..86bb848af 100644 --- a/src/CoreBundle/Controller/ContentElement/ItemListController.php +++ b/src/CoreBundle/Controller/ContentElement/ItemListController.php @@ -3,7 +3,7 @@ /** * This file is part of MetaModels/core. * - * (c) 2012-2024 The MetaModels team. + * (c) 2012-2026 The MetaModels team. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -15,7 +15,7 @@ * @author Ingolf Steinhardt * @author Christian Schiffler * @author Sven Baumann - * @copyright 2012-2024 The MetaModels team. + * @copyright 2012-2026 The MetaModels team. * @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0-or-later * @filesource */ @@ -24,6 +24,7 @@ use Contao\ContentModel; use Contao\CoreBundle\Controller\ContentElement\AbstractContentElementController; +use Contao\CoreBundle\DependencyInjection\Attribute\AsContentElement; use Contao\CoreBundle\ServiceAnnotation\ContentElement; use Contao\PageModel; use Contao\System; @@ -35,10 +36,9 @@ /** * The item list content element. * - * @ContentElement("metamodel_content", category="metamodels", template="ce_metamodel_content") - * * @psalm-suppress PropertyNotSetInConstructor */ +#[AsContentElement('metamodel_content', category: 'metamodels')] final class ItemListController extends AbstractContentElementController { use ListControllerTrait; diff --git a/src/CoreBundle/Controller/FrontendModule/ItemListController.php b/src/CoreBundle/Controller/FrontendModule/ItemListController.php index 9754b2f25..80b6952a1 100644 --- a/src/CoreBundle/Controller/FrontendModule/ItemListController.php +++ b/src/CoreBundle/Controller/FrontendModule/ItemListController.php @@ -3,7 +3,7 @@ /** * This file is part of MetaModels/core. * - * (c) 2012-2024 The MetaModels team. + * (c) 2012-2026 The MetaModels team. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. @@ -15,7 +15,7 @@ * @author Christian Schiffler * @author Sven Baumann * @author Ingolf Steinhardt - * @copyright 2012-2024 The MetaModels team. + * @copyright 2012-2026 The MetaModels team. * @license https://github.com/MetaModels/core/blob/master/LICENSE LGPL-3.0-or-later * @filesource */ @@ -23,6 +23,7 @@ namespace MetaModels\CoreBundle\Controller\FrontendModule; use Contao\CoreBundle\Controller\FrontendModule\AbstractFrontendModuleController; +use Contao\CoreBundle\DependencyInjection\Attribute\AsFrontendModule; use Contao\CoreBundle\ServiceAnnotation\FrontendModule; use Contao\ModuleModel; use Contao\PageModel; @@ -34,10 +35,9 @@ /** * The item list front end module. * - * @FrontendModule("metamodel_list", category="metamodels") - * * @psalm-suppress PropertyNotSetInConstructor */ +#[AsFrontendModule('metamodel_list', category: 'metamodels')] final class ItemListController extends AbstractFrontendModuleController { use ListControllerTrait;