From c9938a071c3675499ce5bfa0c8ed2a1dd53ffb37 Mon Sep 17 00:00:00 2001 From: Danny van Wijk Date: Fri, 5 Apr 2024 09:50:14 +0200 Subject: [PATCH] Fix routing deprecations --- .../ForcedChangePasswordController.php | 2 +- .../Authentication/PasswordResetController.php | 2 +- .../Authentication/SecurityController.php | 2 +- .../AdminBundle/Controller/DefaultController.php | 2 +- .../AdminBundle/Controller/ExceptionController.php | 2 +- .../AdminBundle/Controller/ModulesController.php | 2 +- .../AdminBundle/Controller/SettingsController.php | 2 +- .../AdminBundle/Resources/config/routing.yml | 14 +++++++------- .../Controller/EntityLockCheckController.php | 2 +- .../AdminListBundle/Resources/config/routing.yml | 2 +- .../Resources/doc/AdminListBundle.md | 4 ++-- .../Resources/doc/PageAdminListBundle.md | 14 +++++++------- .../CacheBundle/Controller/VarnishController.php | 2 +- .../CacheBundle/Resources/config/routing.yml | 2 +- .../Controller/CookieAdminListController.php | 2 +- .../Controller/CookieMenuController.php | 2 +- .../Controller/CookieTypeAdminListController.php | 2 +- .../CookieBundle/Controller/LegalController.php | 2 +- .../CookieBundle/Resources/config/routing.yml | 8 ++++---- .../Controller/DashboardController.php | 2 +- .../Controller/GoogleAnalyticsAJAXController.php | 2 +- .../Controller/GoogleAnalyticsController.php | 2 +- .../DashboardBundle/Resources/config/routing.yml | 6 +++--- .../DashboardBundle/Widget/DashboardWidget.php | 2 +- .../Controller/FormSubmissionsController.php | 2 +- .../FormBundle/Resources/config/routing.yml | 2 +- .../Controller/EntityAdminListController.php | 2 +- .../Controller/AuthorAdminListController.php | 2 +- .../Controller/CategoryAdminListController.php | 2 +- .../article/Controller/PageAdminListController.php | 2 +- .../article/Controller/TagAdminListController.php | 2 +- .../Controller/BikeAdminListController.php | 2 +- .../defaultsite/Controller/DefaultController.php | 2 +- .../Controller/AbstractNewsletterController.php | 2 +- .../Controller/AbstractRedirectController.php | 2 +- .../Controller/PopupsAdminListController.php | 2 +- .../Controller/RulesAdminListController.php | 2 +- .../MediaBundle/Controller/ChooserController.php | 2 +- .../MediaBundle/Controller/FolderController.php | 2 +- .../MediaBundle/Controller/IconFontController.php | 2 +- .../MediaBundle/Controller/MediaController.php | 2 +- .../KunstmaanMediaExtension.php | 2 +- .../MediaBundle/Resources/config/routing.yml | 8 ++++---- .../Controller/MenuAdminListController.php | 2 +- .../Controller/MenuItemAdminListController.php | 2 +- .../MenuBundle/Resources/config/routing.yml | 4 ++-- .../Controller/SiteSwitchController.php | 2 +- .../MultiDomainBundle/Resources/config/routing.yml | 2 +- .../NodeBundle/Controller/NodeAdminController.php | 2 +- .../NodeBundle/Controller/UrlReplaceController.php | 2 +- .../NodeBundle/Controller/WidgetsController.php | 2 +- .../NodeBundle/Resources/config/routing.yml | 4 ++-- .../Controller/PagePartAdminController.php | 2 +- .../PagePartBundle/Resources/config/routing.yml | 2 +- .../Controller/RedirectAdminListController.php | 2 +- .../RedirectBundle/Resources/config/routing.yml | 2 +- .../Controller/Admin/SettingsController.php | 2 +- .../SeoBundle/Controller/RobotsController.php | 2 +- .../SeoBundle/Resources/config/routing.yml | 2 +- .../SitemapBundle/Controller/SitemapController.php | 2 +- .../SitemapBundle/Resources/config/routing.yml | 2 +- .../Controller/TagAdminListController.php | 2 +- .../TaggingBundle/Resources/config/routing.yml | 2 +- .../Controller/TranslatorCommandController.php | 2 +- .../Controller/TranslatorController.php | 2 +- .../TranslatorBundle/Resources/config/routing.yml | 4 ++-- .../Controller/GroupsController.php | 2 +- .../Controller/RolesController.php | 2 +- .../Controller/UsersController.php | 2 +- .../Resources/config/routing.yml | 6 +++--- .../VotingBundle/Controller/VotingController.php | 2 +- .../VotingBundle/Resources/config/routing.yml | 2 +- 72 files changed, 98 insertions(+), 98 deletions(-) diff --git a/src/Kunstmaan/AdminBundle/Controller/Authentication/ForcedChangePasswordController.php b/src/Kunstmaan/AdminBundle/Controller/Authentication/ForcedChangePasswordController.php index c65c1602fd..5717dd19ee 100644 --- a/src/Kunstmaan/AdminBundle/Controller/Authentication/ForcedChangePasswordController.php +++ b/src/Kunstmaan/AdminBundle/Controller/Authentication/ForcedChangePasswordController.php @@ -8,7 +8,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\AccessDeniedException; final class ForcedChangePasswordController extends AbstractController diff --git a/src/Kunstmaan/AdminBundle/Controller/Authentication/PasswordResetController.php b/src/Kunstmaan/AdminBundle/Controller/Authentication/PasswordResetController.php index 184c2e5858..e2b39471b4 100644 --- a/src/Kunstmaan/AdminBundle/Controller/Authentication/PasswordResetController.php +++ b/src/Kunstmaan/AdminBundle/Controller/Authentication/PasswordResetController.php @@ -10,7 +10,7 @@ use Kunstmaan\AdminBundle\Service\UserManager; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\UserNotFoundException; final class PasswordResetController extends AbstractController diff --git a/src/Kunstmaan/AdminBundle/Controller/Authentication/SecurityController.php b/src/Kunstmaan/AdminBundle/Controller/Authentication/SecurityController.php index 9ccbcace53..524035e1e6 100644 --- a/src/Kunstmaan/AdminBundle/Controller/Authentication/SecurityController.php +++ b/src/Kunstmaan/AdminBundle/Controller/Authentication/SecurityController.php @@ -3,7 +3,7 @@ namespace Kunstmaan\AdminBundle\Controller\Authentication; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; use Twig\Environment; diff --git a/src/Kunstmaan/AdminBundle/Controller/DefaultController.php b/src/Kunstmaan/AdminBundle/Controller/DefaultController.php index 09a3e3fc8e..77ab512cef 100644 --- a/src/Kunstmaan/AdminBundle/Controller/DefaultController.php +++ b/src/Kunstmaan/AdminBundle/Controller/DefaultController.php @@ -12,7 +12,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; /** diff --git a/src/Kunstmaan/AdminBundle/Controller/ExceptionController.php b/src/Kunstmaan/AdminBundle/Controller/ExceptionController.php index bc57c28bed..7c310423c8 100644 --- a/src/Kunstmaan/AdminBundle/Controller/ExceptionController.php +++ b/src/Kunstmaan/AdminBundle/Controller/ExceptionController.php @@ -8,7 +8,7 @@ use Kunstmaan\AdminListBundle\Controller\AbstractAdminListController; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class ExceptionController extends AbstractAdminListController { diff --git a/src/Kunstmaan/AdminBundle/Controller/ModulesController.php b/src/Kunstmaan/AdminBundle/Controller/ModulesController.php index 9a7e27397c..50d2c1853a 100644 --- a/src/Kunstmaan/AdminBundle/Controller/ModulesController.php +++ b/src/Kunstmaan/AdminBundle/Controller/ModulesController.php @@ -4,7 +4,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class ModulesController extends AbstractController { diff --git a/src/Kunstmaan/AdminBundle/Controller/SettingsController.php b/src/Kunstmaan/AdminBundle/Controller/SettingsController.php index 2e51d1c69a..276b4a93b2 100644 --- a/src/Kunstmaan/AdminBundle/Controller/SettingsController.php +++ b/src/Kunstmaan/AdminBundle/Controller/SettingsController.php @@ -6,7 +6,7 @@ use Psr\Log\LoggerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class SettingsController extends AbstractController { diff --git a/src/Kunstmaan/AdminBundle/Resources/config/routing.yml b/src/Kunstmaan/AdminBundle/Resources/config/routing.yml index c33e23bf8a..390c5af8fd 100644 --- a/src/Kunstmaan/AdminBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/AdminBundle/Resources/config/routing.yml @@ -1,34 +1,34 @@ KunstmaanAdminBundle_default: resource: '@KunstmaanAdminBundle/Controller/DefaultController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix% KunstmaanAdminBundle_modules: resource: '@KunstmaanAdminBundle/Controller/ModulesController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/modules KunstmaanAdminBundle_settings: resource: '@KunstmaanAdminBundle/Controller/SettingsController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings KunstmaanAdminBundle_settings_exception: resource: '@KunstmaanAdminBundle/Controller/ExceptionController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/exception KunstmaanAdminBundle_security: resource: '@KunstmaanAdminBundle/Controller/Authentication/SecurityController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix% KunstmaanAdminBundle_resetting: resource: '@KunstmaanAdminBundle/Controller/Authentication/PasswordResetController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix% KunstmaanAdminBundle_change_password: resource: '@KunstmaanAdminBundle/Controller/Authentication/ForcedChangePasswordController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix% diff --git a/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php b/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php index 6e7825cdaf..6cec0d967c 100644 --- a/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php +++ b/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php @@ -8,7 +8,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Contracts\Translation\TranslatorInterface; diff --git a/src/Kunstmaan/AdminListBundle/Resources/config/routing.yml b/src/Kunstmaan/AdminListBundle/Resources/config/routing.yml index 38ad5a6cc6..605c681116 100644 --- a/src/Kunstmaan/AdminListBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/AdminListBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ kunstmaan_entity_lock_check: resource: '@KunstmaanAdminListBundle/Controller/EntityLockCheckController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/entity/lock diff --git a/src/Kunstmaan/AdminListBundle/Resources/doc/AdminListBundle.md b/src/Kunstmaan/AdminListBundle/Resources/doc/AdminListBundle.md index e55a62da12..506d2ab66a 100644 --- a/src/Kunstmaan/AdminListBundle/Resources/doc/AdminListBundle.md +++ b/src/Kunstmaan/AdminListBundle/Resources/doc/AdminListBundle.md @@ -96,7 +96,7 @@ use Your\Bundle\Form\DocumentType; use Your\Bundle\AdminList\DocumentAdminListConfigurator; use Kunstmaan\AdminListBundle\Controller\AbstractAdminListController; use Symfony\Component\HttpFoundation\RedirectResponse; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; class DocumentAdminController extends AbstractAdminListController @@ -295,7 +295,7 @@ Add the following lines to your routing.yml. ```YAML YourBundle_documents: resource: "@YourBundle/Controller/DocumentAdminController.php" - type: annotation + type: attribute prefix: /{_locale}/%kunstmaan_admin.admin_prefix%/documents requirements: _locale: "%requiredlocales%" diff --git a/src/Kunstmaan/AdminListBundle/Resources/doc/PageAdminListBundle.md b/src/Kunstmaan/AdminListBundle/Resources/doc/PageAdminListBundle.md index b900ca0076..1d3bc5621d 100644 --- a/src/Kunstmaan/AdminListBundle/Resources/doc/PageAdminListBundle.md +++ b/src/Kunstmaan/AdminListBundle/Resources/doc/PageAdminListBundle.md @@ -4,7 +4,7 @@ ### Manually -Below you will find a how-to how to create an admin list based on existing page type. +Below you will find a how-to how to create an admin list based on existing page type. You will need to create 2 classes. A pageAdminListConfigurator and a pageAdminstListController. Let's assume you allready created a page type named 'project'. #### Classes @@ -48,7 +48,7 @@ class ProjectPageAdminListConfigurator extends AbstractPageAdminListConfigurator ##### Controller -The controller will allow you to list yourpage. +The controller will allow you to list yourpage. Create your ProjectPageAdminListController in your Controller folder and let it extend from a the AdminListController. Only the indexAction is used here. @@ -60,7 +60,7 @@ namespace YourProject\WebsiteBundle\Controller; use YourProject\WebsiteBundle\AdminList\ProjectPageAdminListConfigurator; use Kunstmaan\AdminListBundle\AdminList\Configurator\AdminListConfiguratorInterface; use Kunstmaan\AdminListBundle\Controller\AbstractAdminListController; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\HttpFoundation\Request; /** @@ -107,11 +107,11 @@ Add the following lines to your routing.yml. ```YAML YourBundle_documents: resource: '@YourBundle/Controller/ProjectPageAdminListController.php' - type: annotation + type: attribute prefix: /{_locale}/admin/projectpage/ requirements: _locale: "%requiredlocales%" - + ``` ### Hiding the sidebar @@ -133,9 +133,9 @@ use Kunstmaan\PagePartBundle\Helper\HasPageTemplateInterface; * @ORM\Entity */ class ProjectPage extends \Kunstmaan\NodeBundle\Entity\AbstractPage - implements HasPageTemplateInterface ,HideSidebarInNodeEditInterface + implements HasPageTemplateInterface ,HideSidebarInNodeEditInterface { - + ``` diff --git a/src/Kunstmaan/CacheBundle/Controller/VarnishController.php b/src/Kunstmaan/CacheBundle/Controller/VarnishController.php index fc58dc02c5..eef264b4cb 100644 --- a/src/Kunstmaan/CacheBundle/Controller/VarnishController.php +++ b/src/Kunstmaan/CacheBundle/Controller/VarnishController.php @@ -10,7 +10,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Exception\AccessDeniedException; final class VarnishController extends AbstractController diff --git a/src/Kunstmaan/CacheBundle/Resources/config/routing.yml b/src/Kunstmaan/CacheBundle/Resources/config/routing.yml index cfa58e471b..922e6f9157 100644 --- a/src/Kunstmaan/CacheBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/CacheBundle/Resources/config/routing.yml @@ -1,5 +1,5 @@ ################ VARNISH ################ kunstmaancachebundle_varnish: resource: "@KunstmaanCacheBundle/Controller/VarnishController.php" - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix% diff --git a/src/Kunstmaan/CookieBundle/Controller/CookieAdminListController.php b/src/Kunstmaan/CookieBundle/Controller/CookieAdminListController.php index 4b3a09f74d..cfbc14610d 100644 --- a/src/Kunstmaan/CookieBundle/Controller/CookieAdminListController.php +++ b/src/Kunstmaan/CookieBundle/Controller/CookieAdminListController.php @@ -8,7 +8,7 @@ use Kunstmaan\CookieBundle\AdminList\CookieAdminListConfigurator; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class CookieAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/CookieBundle/Controller/CookieMenuController.php b/src/Kunstmaan/CookieBundle/Controller/CookieMenuController.php index cd76acc778..9cbefdf488 100644 --- a/src/Kunstmaan/CookieBundle/Controller/CookieMenuController.php +++ b/src/Kunstmaan/CookieBundle/Controller/CookieMenuController.php @@ -4,7 +4,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RedirectResponse; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class CookieMenuController extends AbstractController { diff --git a/src/Kunstmaan/CookieBundle/Controller/CookieTypeAdminListController.php b/src/Kunstmaan/CookieBundle/Controller/CookieTypeAdminListController.php index 706a886fbf..8300b9b83f 100644 --- a/src/Kunstmaan/CookieBundle/Controller/CookieTypeAdminListController.php +++ b/src/Kunstmaan/CookieBundle/Controller/CookieTypeAdminListController.php @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; /** * Class CookieTypeAdminListController diff --git a/src/Kunstmaan/CookieBundle/Controller/LegalController.php b/src/Kunstmaan/CookieBundle/Controller/LegalController.php index c15b74dacb..c369473892 100644 --- a/src/Kunstmaan/CookieBundle/Controller/LegalController.php +++ b/src/Kunstmaan/CookieBundle/Controller/LegalController.php @@ -11,7 +11,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class LegalController extends AbstractController { diff --git a/src/Kunstmaan/CookieBundle/Resources/config/routing.yml b/src/Kunstmaan/CookieBundle/Resources/config/routing.yml index 617a290241..d66263fc00 100644 --- a/src/Kunstmaan/CookieBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/CookieBundle/Resources/config/routing.yml @@ -1,19 +1,19 @@ kunstmaancookiebundle_cookies_menu: resource: "@KunstmaanCookieBundle/Controller/CookieMenuController.php" - type: annotation + type: attribute prefix: /cookies-menu/ kunstmaancookiebundle_legal: resource: "@KunstmaanCookieBundle/Controller/LegalController.php" - type: annotation + type: attribute prefix: /legal/ kunstmaancookiebundle_cookietype_admin_list: resource: '@KunstmaanCookieBundle/Controller/CookieTypeAdminListController.php' - type: annotation + type: attribute prefix: /admin/cookietype/ kunstmaancookiebundle_cookie_admin_list: resource: '@KunstmaanCookieBundle/Controller/CookieAdminListController.php' - type: annotation + type: attribute prefix: /admin/cookie/ diff --git a/src/Kunstmaan/DashboardBundle/Controller/DashboardController.php b/src/Kunstmaan/DashboardBundle/Controller/DashboardController.php index 83be90e4ec..5ba411ecc1 100644 --- a/src/Kunstmaan/DashboardBundle/Controller/DashboardController.php +++ b/src/Kunstmaan/DashboardBundle/Controller/DashboardController.php @@ -6,7 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class DashboardController extends AbstractController { diff --git a/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsAJAXController.php b/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsAJAXController.php index 3e7e1e97f6..8ca182cef9 100644 --- a/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsAJAXController.php +++ b/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsAJAXController.php @@ -17,7 +17,7 @@ use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpKernel\KernelInterface; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; final class GoogleAnalyticsAJAXController extends AbstractController diff --git a/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsController.php b/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsController.php index f5061d7b72..781d887c65 100644 --- a/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsController.php +++ b/src/Kunstmaan/DashboardBundle/Controller/GoogleAnalyticsController.php @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; final class GoogleAnalyticsController extends AbstractController diff --git a/src/Kunstmaan/DashboardBundle/Resources/config/routing.yml b/src/Kunstmaan/DashboardBundle/Resources/config/routing.yml index 173a6e6594..fcefcbf972 100644 --- a/src/Kunstmaan/DashboardBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/DashboardBundle/Resources/config/routing.yml @@ -1,14 +1,14 @@ kunstmaan_dashboard: resource: '@KunstmaanDashboardBundle/Controller/DashboardController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/dashboard kunstmaan_dashboard_googleanalytics: resource: '@KunstmaanDashboardBundle/Controller/GoogleAnalyticsController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/dashboard/widget/googleanalytics kunstmaan_dashboard_googleanalytics_AJAX: resource: '@KunstmaanDashboardBundle/Controller/GoogleAnalyticsAJAXController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/dashboard/ajax/ diff --git a/src/Kunstmaan/DashboardBundle/Widget/DashboardWidget.php b/src/Kunstmaan/DashboardBundle/Widget/DashboardWidget.php index e4e8fdadfb..ff83f17068 100644 --- a/src/Kunstmaan/DashboardBundle/Widget/DashboardWidget.php +++ b/src/Kunstmaan/DashboardBundle/Widget/DashboardWidget.php @@ -3,7 +3,7 @@ namespace Kunstmaan\DashboardBundle\Widget; use Doctrine\Common\Annotations\AnnotationReader; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; class DashboardWidget { diff --git a/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php b/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php index 337c8ef64f..e14a6499e5 100644 --- a/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php +++ b/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php @@ -24,7 +24,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; /** diff --git a/src/Kunstmaan/FormBundle/Resources/config/routing.yml b/src/Kunstmaan/FormBundle/Resources/config/routing.yml index d983de3e6c..e269cc6701 100644 --- a/src/Kunstmaan/FormBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/FormBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ KunstmaanFormBundle_formsubmissions: resource: '@KunstmaanFormBundle/Controller/FormSubmissionsController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/formsubmissions diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/adminlist/Controller/EntityAdminListController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/adminlist/Controller/EntityAdminListController.php index 608fb98c86..3869356f93 100755 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/adminlist/Controller/EntityAdminListController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/adminlist/Controller/EntityAdminListController.php @@ -5,7 +5,7 @@ use {{ namespace }}\AdminList\{{ entity_class }}AdminListConfigurator; use Kunstmaan\AdminListBundle\AdminList\Configurator\AdminListConfiguratorInterface; use Kunstmaan\AdminListBundle\Controller\AbstractAdminListController; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/AuthorAdminListController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/AuthorAdminListController.php index 1afee0e96b..22f3bd66de 100755 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/AuthorAdminListController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/AuthorAdminListController.php @@ -7,7 +7,7 @@ use Kunstmaan\ArticleBundle\Controller\AbstractArticleAuthorAdminListController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; {% if canUseAttributes %} #[Route('/{_locale}/%kunstmaan_admin.admin_prefix%/{{ entity_class|lower}}-author', requirements: ['_locale' => '%requiredlocales%'])] diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/CategoryAdminListController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/CategoryAdminListController.php index 38d0a38ee8..403eb85317 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/CategoryAdminListController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/CategoryAdminListController.php @@ -6,7 +6,7 @@ use Kunstmaan\ArticleBundle\Controller\AbstractArticleCategoryAdminListController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; {% if canUseAttributes %} #[Route('/{_locale}/%kunstmaan_admin.admin_prefix%/{{ entity_class|lower}}-category', requirements: ['_locale' => '%requiredlocales%'])] diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/PageAdminListController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/PageAdminListController.php index b078b4e49f..2b5ded53f6 100755 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/PageAdminListController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/PageAdminListController.php @@ -8,7 +8,7 @@ use Kunstmaan\ArticleBundle\Controller\AbstractArticlePageAdminListController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; {% if canUseAttributes %} #[Route('/{_locale}/%kunstmaan_admin.admin_prefix%/{{ entity_class|lower}}-page', requirements: ['_locale' => '%requiredlocales%'])] diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/TagAdminListController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/TagAdminListController.php index 8f011651ff..fffa3f229e 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/TagAdminListController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/article/Controller/TagAdminListController.php @@ -6,7 +6,7 @@ use Kunstmaan\ArticleBundle\Controller\AbstractArticleTagAdminListController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; {% if canUseAttributes %} #[Route('/{_locale}/%kunstmaan_admin.admin_prefix%/{{ entity_class|lower}}-tag', requirements: ['_locale' => '%requiredlocales%'])] diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/BikeAdminListController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/BikeAdminListController.php index 9f995c657c..a4226d4746 100644 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/BikeAdminListController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/BikeAdminListController.php @@ -7,7 +7,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; {% if canUseAttributes %}#[Route('/{_locale}/%kunstmaan_admin.admin_prefix%/bike', requirements: ['_locale' => '%requiredlocales%'])] {% else %}/** diff --git a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php index 7414f49489..b1f661e184 100755 --- a/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php +++ b/src/Kunstmaan/GeneratorBundle/Resources/SensioGeneratorBundle/skeleton/defaultsite/Controller/DefaultController.php @@ -5,7 +5,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; class DefaultController extends AbstractController { diff --git a/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractNewsletterController.php b/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractNewsletterController.php index 545b23a3c3..b02ea33588 100644 --- a/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractNewsletterController.php +++ b/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractNewsletterController.php @@ -10,7 +10,7 @@ use Symfony\Component\Form\FormInterface; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; abstract class AbstractNewsletterController extends AbstractController { diff --git a/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractRedirectController.php b/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractRedirectController.php index 97b4f507aa..0cea8d5607 100644 --- a/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractRedirectController.php +++ b/src/Kunstmaan/LeadGenerationBundle/Controller/AbstractRedirectController.php @@ -5,7 +5,7 @@ use Doctrine\ORM\EntityManagerInterface; use Kunstmaan\LeadGenerationBundle\Entity\Popup\AbstractPopup; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; abstract class AbstractRedirectController extends AbstractController { diff --git a/src/Kunstmaan/LeadGenerationBundle/Controller/PopupsAdminListController.php b/src/Kunstmaan/LeadGenerationBundle/Controller/PopupsAdminListController.php index 846022138f..9909173d0e 100644 --- a/src/Kunstmaan/LeadGenerationBundle/Controller/PopupsAdminListController.php +++ b/src/Kunstmaan/LeadGenerationBundle/Controller/PopupsAdminListController.php @@ -9,7 +9,7 @@ use Kunstmaan\LeadGenerationBundle\AdminList\PopupAdminListConfigurator; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class PopupsAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/LeadGenerationBundle/Controller/RulesAdminListController.php b/src/Kunstmaan/LeadGenerationBundle/Controller/RulesAdminListController.php index 45236ef379..457474adb7 100644 --- a/src/Kunstmaan/LeadGenerationBundle/Controller/RulesAdminListController.php +++ b/src/Kunstmaan/LeadGenerationBundle/Controller/RulesAdminListController.php @@ -7,7 +7,7 @@ use Kunstmaan\LeadGenerationBundle\AdminList\RulesAdminListConfigurator; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class RulesAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/MediaBundle/Controller/ChooserController.php b/src/Kunstmaan/MediaBundle/Controller/ChooserController.php index 65a1943422..ce148ec624 100644 --- a/src/Kunstmaan/MediaBundle/Controller/ChooserController.php +++ b/src/Kunstmaan/MediaBundle/Controller/ChooserController.php @@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class ChooserController extends AbstractController { diff --git a/src/Kunstmaan/MediaBundle/Controller/FolderController.php b/src/Kunstmaan/MediaBundle/Controller/FolderController.php index a7283e2716..b28b2c38e2 100644 --- a/src/Kunstmaan/MediaBundle/Controller/FolderController.php +++ b/src/Kunstmaan/MediaBundle/Controller/FolderController.php @@ -17,7 +17,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; final class FolderController extends AbstractController diff --git a/src/Kunstmaan/MediaBundle/Controller/IconFontController.php b/src/Kunstmaan/MediaBundle/Controller/IconFontController.php index 10005005a4..4284ab34c2 100644 --- a/src/Kunstmaan/MediaBundle/Controller/IconFontController.php +++ b/src/Kunstmaan/MediaBundle/Controller/IconFontController.php @@ -6,7 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class IconFontController extends AbstractController { diff --git a/src/Kunstmaan/MediaBundle/Controller/MediaController.php b/src/Kunstmaan/MediaBundle/Controller/MediaController.php index 53bb2299ac..0d6490f768 100644 --- a/src/Kunstmaan/MediaBundle/Controller/MediaController.php +++ b/src/Kunstmaan/MediaBundle/Controller/MediaController.php @@ -15,7 +15,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; final class MediaController extends AbstractController diff --git a/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php b/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php index d9ad8a1cf9..cb01d1db50 100644 --- a/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php +++ b/src/Kunstmaan/MediaBundle/DependencyInjection/KunstmaanMediaExtension.php @@ -95,7 +95,7 @@ public function prepend(ContainerBuilder $container): void 'orm' => [ 'mappings' => [ 'gedmo_translatable' => [ - 'type' => 'annotation', + 'type' => 'attribute', 'prefix' => 'Gedmo\Translatable\Entity', 'dir' => '%kernel.project_dir%/vendor/gedmo/doctrine-extensions/' . $baseDir . '/Translatable/Entity', 'alias' => 'GedmoTranslatable', diff --git a/src/Kunstmaan/MediaBundle/Resources/config/routing.yml b/src/Kunstmaan/MediaBundle/Resources/config/routing.yml index 09c2f3d239..71a917c7c7 100644 --- a/src/Kunstmaan/MediaBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/MediaBundle/Resources/config/routing.yml @@ -1,19 +1,19 @@ KunstmaanMediaBundle_media: resource: '@KunstmaanMediaBundle/Controller/MediaController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/media KunstmaanMediaBundle_media_chooser: resource: '@KunstmaanMediaBundle/Controller/ChooserController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/media KunstmaanMediaBundle_media_folder: resource: '@KunstmaanMediaBundle/Controller/FolderController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/media/folder KunstmaanMediaBundle_icon_font: resource: '@KunstmaanMediaBundle/Controller/IconFontController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/media/icon-font diff --git a/src/Kunstmaan/MenuBundle/Controller/MenuAdminListController.php b/src/Kunstmaan/MenuBundle/Controller/MenuAdminListController.php index 2ed6cd40d9..491c5aef38 100644 --- a/src/Kunstmaan/MenuBundle/Controller/MenuAdminListController.php +++ b/src/Kunstmaan/MenuBundle/Controller/MenuAdminListController.php @@ -10,7 +10,7 @@ use Kunstmaan\MenuBundle\Service\MenuService; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class MenuAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/MenuBundle/Controller/MenuItemAdminListController.php b/src/Kunstmaan/MenuBundle/Controller/MenuItemAdminListController.php index 60cae02c1f..c3ad2c45ca 100644 --- a/src/Kunstmaan/MenuBundle/Controller/MenuItemAdminListController.php +++ b/src/Kunstmaan/MenuBundle/Controller/MenuItemAdminListController.php @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class MenuItemAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/MenuBundle/Resources/config/routing.yml b/src/Kunstmaan/MenuBundle/Resources/config/routing.yml index e2ef479443..ec9f94fca4 100644 --- a/src/Kunstmaan/MenuBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/MenuBundle/Resources/config/routing.yml @@ -1,9 +1,9 @@ kunstmaanmenubundle_menu_admin_list: resource: '@KunstmaanMenuBundle/Controller/MenuAdminListController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/menu/ kunstmaanmenubundle_menuitem_admin_list: resource: '@KunstmaanMenuBundle/Controller/MenuItemAdminListController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/menu/ diff --git a/src/Kunstmaan/MultiDomainBundle/Controller/SiteSwitchController.php b/src/Kunstmaan/MultiDomainBundle/Controller/SiteSwitchController.php index 1cfff046b1..650eea9b19 100644 --- a/src/Kunstmaan/MultiDomainBundle/Controller/SiteSwitchController.php +++ b/src/Kunstmaan/MultiDomainBundle/Controller/SiteSwitchController.php @@ -8,7 +8,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; final class SiteSwitchController diff --git a/src/Kunstmaan/MultiDomainBundle/Resources/config/routing.yml b/src/Kunstmaan/MultiDomainBundle/Resources/config/routing.yml index ca21e7747b..383ebb0091 100644 --- a/src/Kunstmaan/MultiDomainBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/MultiDomainBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ kunstmaanmultidomainbundle_site_switch: resource: '@KunstmaanMultiDomainBundle/Controller/SiteSwitchController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/multi-domain diff --git a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php index a86cd48d04..a3388f1b49 100644 --- a/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php +++ b/src/Kunstmaan/NodeBundle/Controller/NodeAdminController.php @@ -45,7 +45,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; diff --git a/src/Kunstmaan/NodeBundle/Controller/UrlReplaceController.php b/src/Kunstmaan/NodeBundle/Controller/UrlReplaceController.php index 5c2107b25e..03a67ec064 100644 --- a/src/Kunstmaan/NodeBundle/Controller/UrlReplaceController.php +++ b/src/Kunstmaan/NodeBundle/Controller/UrlReplaceController.php @@ -5,7 +5,7 @@ use Kunstmaan\NodeBundle\Helper\URLHelper; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class UrlReplaceController { diff --git a/src/Kunstmaan/NodeBundle/Controller/WidgetsController.php b/src/Kunstmaan/NodeBundle/Controller/WidgetsController.php index 6ab81f2b83..2d4398340b 100644 --- a/src/Kunstmaan/NodeBundle/Controller/WidgetsController.php +++ b/src/Kunstmaan/NodeBundle/Controller/WidgetsController.php @@ -14,7 +14,7 @@ use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class WidgetsController extends AbstractController { diff --git a/src/Kunstmaan/NodeBundle/Resources/config/routing.yml b/src/Kunstmaan/NodeBundle/Resources/config/routing.yml index e1eaa80bff..0f325cccd0 100644 --- a/src/Kunstmaan/NodeBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/NodeBundle/Resources/config/routing.yml @@ -1,11 +1,11 @@ KunstmaanNodeBundle_widgets: resource: '@KunstmaanNodeBundle/Controller/WidgetsController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/nodewidgets KunstmaanNodeBundle_nodes: resource: '@KunstmaanNodeBundle/Controller/NodeAdminController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/nodes KunstmaanNodeBundle_urlchooser_replace: diff --git a/src/Kunstmaan/PagePartBundle/Controller/PagePartAdminController.php b/src/Kunstmaan/PagePartBundle/Controller/PagePartAdminController.php index 5df54b13ae..d3b8e6a52a 100644 --- a/src/Kunstmaan/PagePartBundle/Controller/PagePartAdminController.php +++ b/src/Kunstmaan/PagePartBundle/Controller/PagePartAdminController.php @@ -13,7 +13,7 @@ use Symfony\Component\Form\FormFactory; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class PagePartAdminController extends AbstractController { diff --git a/src/Kunstmaan/PagePartBundle/Resources/config/routing.yml b/src/Kunstmaan/PagePartBundle/Resources/config/routing.yml index 69f4843b81..27a4e64aa1 100644 --- a/src/Kunstmaan/PagePartBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/PagePartBundle/Resources/config/routing.yml @@ -1,5 +1,5 @@ KunstmaanMediaBundle_pagepartadmin: resource: '@KunstmaanPagePartBundle/Controller/PagePartAdminController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix% diff --git a/src/Kunstmaan/RedirectBundle/Controller/RedirectAdminListController.php b/src/Kunstmaan/RedirectBundle/Controller/RedirectAdminListController.php index 77868de0c6..d96f75c197 100644 --- a/src/Kunstmaan/RedirectBundle/Controller/RedirectAdminListController.php +++ b/src/Kunstmaan/RedirectBundle/Controller/RedirectAdminListController.php @@ -6,7 +6,7 @@ use Kunstmaan\AdminListBundle\Controller\AbstractAdminListController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class RedirectAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/RedirectBundle/Resources/config/routing.yml b/src/Kunstmaan/RedirectBundle/Resources/config/routing.yml index b5d41fe8a1..4ee5938abb 100644 --- a/src/Kunstmaan/RedirectBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/RedirectBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ KunstmaanRedirectBundle_redirect_adminlist: resource: '@KunstmaanRedirectBundle/Controller/RedirectAdminListController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/redirect/ diff --git a/src/Kunstmaan/SeoBundle/Controller/Admin/SettingsController.php b/src/Kunstmaan/SeoBundle/Controller/Admin/SettingsController.php index 7fd3df097e..4bf29854c3 100644 --- a/src/Kunstmaan/SeoBundle/Controller/Admin/SettingsController.php +++ b/src/Kunstmaan/SeoBundle/Controller/Admin/SettingsController.php @@ -9,7 +9,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; final class SettingsController extends AbstractController diff --git a/src/Kunstmaan/SeoBundle/Controller/RobotsController.php b/src/Kunstmaan/SeoBundle/Controller/RobotsController.php index 537438c9d9..9210b22d9c 100644 --- a/src/Kunstmaan/SeoBundle/Controller/RobotsController.php +++ b/src/Kunstmaan/SeoBundle/Controller/RobotsController.php @@ -6,7 +6,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; final class RobotsController extends AbstractController diff --git a/src/Kunstmaan/SeoBundle/Resources/config/routing.yml b/src/Kunstmaan/SeoBundle/Resources/config/routing.yml index 601a9410de..d5ff989464 100644 --- a/src/Kunstmaan/SeoBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/SeoBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ KunstmaanSeoBundle_settings: resource: '@KunstmaanSeoBundle/Controller/Admin/SettingsController.php' prefix: /%kunstmaan_admin.admin_prefix%/settings/robots - type: annotation + type: attribute diff --git a/src/Kunstmaan/SitemapBundle/Controller/SitemapController.php b/src/Kunstmaan/SitemapBundle/Controller/SitemapController.php index 030bef2f48..fadb91f616 100644 --- a/src/Kunstmaan/SitemapBundle/Controller/SitemapController.php +++ b/src/Kunstmaan/SitemapBundle/Controller/SitemapController.php @@ -9,7 +9,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; final class SitemapController extends AbstractController diff --git a/src/Kunstmaan/SitemapBundle/Resources/config/routing.yml b/src/Kunstmaan/SitemapBundle/Resources/config/routing.yml index 41878fd2c5..5c56b5df87 100644 --- a/src/Kunstmaan/SitemapBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/SitemapBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ KunstmaanSitemapBundle_sitemap: resource: '@KunstmaanSitemapBundle/Controller/SitemapController.php' - type: annotation + type: attribute prefix: / diff --git a/src/Kunstmaan/TaggingBundle/Controller/TagAdminListController.php b/src/Kunstmaan/TaggingBundle/Controller/TagAdminListController.php index ac27ea25ab..dc8ed94f78 100644 --- a/src/Kunstmaan/TaggingBundle/Controller/TagAdminListController.php +++ b/src/Kunstmaan/TaggingBundle/Controller/TagAdminListController.php @@ -9,7 +9,7 @@ use Kunstmaan\TaggingBundle\Entity\Tag; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class TagAdminListController extends AbstractAdminListController { diff --git a/src/Kunstmaan/TaggingBundle/Resources/config/routing.yml b/src/Kunstmaan/TaggingBundle/Resources/config/routing.yml index daf4f5c2aa..e3d6366d45 100644 --- a/src/Kunstmaan/TaggingBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/TaggingBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ KunstmaanTaggingBundle_admin_tag: resource: '@KunstmaanTaggingBundle/Controller/TagAdminListController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/tags/ diff --git a/src/Kunstmaan/TranslatorBundle/Controller/TranslatorCommandController.php b/src/Kunstmaan/TranslatorBundle/Controller/TranslatorCommandController.php index b2973689fc..b0e83bb89e 100644 --- a/src/Kunstmaan/TranslatorBundle/Controller/TranslatorCommandController.php +++ b/src/Kunstmaan/TranslatorBundle/Controller/TranslatorCommandController.php @@ -7,7 +7,7 @@ use Kunstmaan\TranslatorBundle\Service\Command\Importer\ImportCommandHandler; use Kunstmaan\TranslatorBundle\Service\Translator\ResourceCacher; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; final class TranslatorCommandController extends AbstractController diff --git a/src/Kunstmaan/TranslatorBundle/Controller/TranslatorController.php b/src/Kunstmaan/TranslatorBundle/Controller/TranslatorController.php index 052d419cdf..1601610ef4 100644 --- a/src/Kunstmaan/TranslatorBundle/Controller/TranslatorController.php +++ b/src/Kunstmaan/TranslatorBundle/Controller/TranslatorController.php @@ -20,7 +20,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; final class TranslatorController extends AbstractAdminListController { diff --git a/src/Kunstmaan/TranslatorBundle/Resources/config/routing.yml b/src/Kunstmaan/TranslatorBundle/Resources/config/routing.yml index 5d3069d227..2029400552 100644 --- a/src/Kunstmaan/TranslatorBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/TranslatorBundle/Resources/config/routing.yml @@ -1,11 +1,11 @@ KunstmaanTranslatorBundle_translations: resource: '@KunstmaanTranslatorBundle/Controller/TranslatorController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/translations KunstmaanTranslatorBundle_translations_commands: resource: '@KunstmaanTranslatorBundle/Controller/TranslatorCommandController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/translations #KunstmaanTranslatorBundle_settings_translations_add: diff --git a/src/Kunstmaan/UserManagementBundle/Controller/GroupsController.php b/src/Kunstmaan/UserManagementBundle/Controller/GroupsController.php index 7829bd5d45..ccf0bdc06f 100644 --- a/src/Kunstmaan/UserManagementBundle/Controller/GroupsController.php +++ b/src/Kunstmaan/UserManagementBundle/Controller/GroupsController.php @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; /** diff --git a/src/Kunstmaan/UserManagementBundle/Controller/RolesController.php b/src/Kunstmaan/UserManagementBundle/Controller/RolesController.php index bbc17795b0..ab8f8f3abe 100644 --- a/src/Kunstmaan/UserManagementBundle/Controller/RolesController.php +++ b/src/Kunstmaan/UserManagementBundle/Controller/RolesController.php @@ -13,7 +13,7 @@ use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\Translation\TranslatorInterface; /** diff --git a/src/Kunstmaan/UserManagementBundle/Controller/UsersController.php b/src/Kunstmaan/UserManagementBundle/Controller/UsersController.php index 61eb0a687f..38656e1081 100644 --- a/src/Kunstmaan/UserManagementBundle/Controller/UsersController.php +++ b/src/Kunstmaan/UserManagementBundle/Controller/UsersController.php @@ -21,7 +21,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; use Symfony\Contracts\Translation\TranslatorInterface; diff --git a/src/Kunstmaan/UserManagementBundle/Resources/config/routing.yml b/src/Kunstmaan/UserManagementBundle/Resources/config/routing.yml index 17143b4be1..37152310ed 100644 --- a/src/Kunstmaan/UserManagementBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/UserManagementBundle/Resources/config/routing.yml @@ -1,14 +1,14 @@ KunstmaanUserManagementBundle_user_settings: resource: '@KunstmaanUserManagementBundle/Controller/UsersController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/users KunstmaanUserManagementBundle_group_settings: resource: '@KunstmaanUserManagementBundle/Controller/GroupsController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/groups KunstmaanUserManagementBundle_role_settings: resource: '@KunstmaanUserManagementBundle/Controller/RolesController.php' - type: annotation + type: attribute prefix: /%kunstmaan_admin.admin_prefix%/settings/roles diff --git a/src/Kunstmaan/VotingBundle/Controller/VotingController.php b/src/Kunstmaan/VotingBundle/Controller/VotingController.php index b8147b9e5e..8d6762003b 100644 --- a/src/Kunstmaan/VotingBundle/Controller/VotingController.php +++ b/src/Kunstmaan/VotingBundle/Controller/VotingController.php @@ -11,7 +11,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; +use Symfony\Component\Routing\Attribute\Route; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface; final class VotingController extends AbstractController diff --git a/src/Kunstmaan/VotingBundle/Resources/config/routing.yml b/src/Kunstmaan/VotingBundle/Resources/config/routing.yml index eddc65b714..179bf3fa4c 100644 --- a/src/Kunstmaan/VotingBundle/Resources/config/routing.yml +++ b/src/Kunstmaan/VotingBundle/Resources/config/routing.yml @@ -1,4 +1,4 @@ KunstmaanVotingBundle_default: resource: '@KunstmaanVotingBundle/Controller/VotingController.php' - type: annotation + type: attribute prefix: /