File tree Expand file tree Collapse file tree 11 files changed +43
-164
lines changed
Expand file tree Collapse file tree 11 files changed +43
-164
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1919
2020namespace phpMyFAQ \Controller ;
2121
22+ use Exception ;
2223use phpMyFAQ \Translation ;
2324use Symfony \Component \HttpFoundation \Request ;
2425use Symfony \Component \HttpFoundation \Response ;
@@ -27,8 +28,9 @@ final class ContactController extends AbstractFrontController
2728{
2829 /**
2930 * Handles both GET and POST requests for the contact form
30- *@throws \ Exception
31+ * @throws Exception
3132 */
33+ #[Route(path: '/contact.html ' , name: 'public.contact ' )]
3234 public function index (Request $ request ): Response
3335 {
3436 $ faqSession = $ this ->container ->get ('phpmyfaq.user.session ' );
Original file line number Diff line number Diff line change 1919
2020namespace phpMyFAQ \Controller ;
2121
22+ use Exception ;
2223use Symfony \Component \HttpFoundation \Response ;
24+ use Symfony \Component \Routing \Attribute \Route ;
2325
2426final class LlmsController extends AbstractController
2527{
2628 /**
27- * @throws \ Exception
29+ * @throws Exception
2830 */
31+ #[Route(path: '/llms.txt ' , name: 'public.llms.index ' )]
2932 public function index (): Response
3033 {
3134 $ response = new Response ();
Original file line number Diff line number Diff line change 1919
2020namespace phpMyFAQ \Controller ;
2121
22+ use Exception ;
2223use phpMyFAQ \Enums \SessionActionType ;
2324use phpMyFAQ \Translation ;
2425use Symfony \Component \HttpFoundation \Request ;
2526use Symfony \Component \HttpFoundation \Response ;
27+ use Symfony \Component \Routing \Attribute \Route ;
2628
2729final class PageNotFoundController extends AbstractFrontController
2830{
2931 /**
3032 * Handles the 404 Not Found page
31- * @throws \ Exception
33+ * @throws Exception
3234 */
35+ #[Route(path: '/404.html ' , name: 'public.404 ' )]
3336 public function index (Request $ request ): Response
3437 {
3538 $ faqSession = $ this ->container ->get ('phpmyfaq.user.session ' );
Original file line number Diff line number Diff line change 1919
2020namespace phpMyFAQ \Controller ;
2121
22+ use Exception ;
2223use Symfony \Component \HttpFoundation \Response ;
24+ use Symfony \Component \Routing \Attribute \Route ;
2325
2426final class RobotsController extends AbstractController
2527{
2628 /**
27- * @throws \ Exception
29+ * @throws Exception
2830 */
31+ #[Route(path: '/robots.txt ' , name: 'public.robots.index ' )]
2932 public function index (): Response
3033 {
3134 $ response = new Response ();
Original file line number Diff line number Diff line change 2222use phpMyFAQ \Core \Exception ;
2323use phpMyFAQ \Twig \TemplateException ;
2424use Symfony \Component \HttpFoundation \Response ;
25+ use Symfony \Component \Routing \Attribute \Route ;
2526
2627final class SitemapController extends AbstractController
2728{
@@ -30,6 +31,7 @@ final class SitemapController extends AbstractController
3031 /**
3132 * @throws TemplateException|Exception|\Exception
3233 */
34+ #[Route(path: '/sitemap.xml ' , name: 'public.sitemap.xml ' )]
3335 public function index (): Response
3436 {
3537 $ response = new Response ();
Original file line number Diff line number Diff line change 2727use phpMyFAQ \Twig \TwigWrapper ;
2828use Symfony \Component \HttpFoundation \Request ;
2929use Symfony \Component \HttpFoundation \Response ;
30- use Symfony \Component \Routing \Annotation \Route ;
30+ use Symfony \Component \Routing \Attribute \Route ;
3131use Twig \Error \LoaderError ;
3232
3333final class WebAuthnController extends AbstractController
3434{
3535 /**
3636 * @throws Exception|LoaderError
3737 */
38- #[Route(path: '/ ' , name: 'public.webauthn.index ' )]
38+ #[Route(path: '/services/webauthn ' , name: 'public.webauthn.index ' )]
3939 public function index (Request $ request ): Response
4040 {
4141 $ system = new System ();
Original file line number Diff line number Diff line change @@ -183,7 +183,6 @@ class Link
183183 'thankyou ' => 1 ,
184184 'twofactor ' => 1 ,
185185 'ucp ' => 1 ,
186- '404 ' => 1 ,
187186 'bookmarks ' => 1 ,
188187 ];
189188
You can’t perform that action at this time.
0 commit comments