Skip to content

Commit 2bdbd4b

Browse files
authored
Merge pull request #314 from iMattPro/master-updates
Add documentation for symfony and controller changes
2 parents 5361947 + b01200c commit 2bdbd4b

1 file changed

Lines changed: 31 additions & 3 deletions

File tree

  • development/development/upgrade

development/development/upgrade/400.rst

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ Basics
1515

1616
PHP
1717
---
18-
phpBB 4.0 requires PHP 8.1 or higher. Most PHP code compatible with phpBB 3.3 should work in phpBB 4.0 with minimal changes,
18+
phpBB 4.0 requires PHP 8.2 or higher. Most PHP code compatible with phpBB 3.3 should work in phpBB 4.0 with minimal changes,
1919
but you may need to make adjustments depending on deprecated or changed functionality.
2020

2121
Symfony
2222
-------
23-
phpBB 4.0 uses Symfony 6.4, a significant upgrade from the version bundled with phpBB 3.3. As Symfony introduced breaking
23+
phpBB 4.0 uses Symfony 7.4, a significant upgrade from the version bundled with phpBB 3.3. As Symfony introduced breaking
2424
changes across versions, we recommend reviewing the following Symfony upgrade guides when updating custom code or extensions:
2525

2626
- `Upgrade Symfony from 3.x to 4.0 <https://github.com/symfony/symfony/blob/4.4/UPGRADE-4.0.md>`_
2727
- `Upgrade Symfony from 4.4 to 5.0 <https://github.com/symfony/symfony/blob/5.4/UPGRADE-5.0.md>`_
2828
- `Upgrade Symfony from 5.x to 6.0 <https://github.com/symfony/symfony/blob/6.4/UPGRADE-6.0.md>`_
29+
- `Upgrade Symfony from 6.x to 7.0 <https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.0.md>`_
2930

30-
Additional guides are available in the `Symfony GitHub repository <https://github.com/symfony/symfony/tree/6.4>`_.
31+
Additional guides are available in the `Symfony GitHub repository <https://github.com/symfony/symfony/tree/7.4>`_.
3132

3233
Twig
3334
----
@@ -57,6 +58,33 @@ All Jabber/XMPP features have been removed in phpBB 4.0:
5758

5859
This removal was driven by lack of browser support for XMPP and limited adoption within the phpBB community.
5960

61+
Front Controller Changes
62+
========================
63+
64+
In phpBB 4.0, the front controller used for Symfony routing has been changed
65+
from ``app.php`` to ``index.php``.
66+
67+
In phpBB 3.3.x, routes were accessed via ``app.php``::
68+
69+
/app.php/faq
70+
71+
In phpBB 4.0, routes are now accessed via ``index.php``::
72+
73+
/index.php/faq
74+
75+
Direct access via ``app.php`` is no longer supported. Extensions and external
76+
integrations must use ``index.php``.
77+
78+
Extensions using phpBB routing helpers (for example,
79+
``controller_helper::route()``) do not require changes, as URLs will be
80+
generated correctly.
81+
82+
However, any hardcoded references to ``app.php`` must be updated. This includes:
83+
84+
- Template files
85+
- PHP code constructing URLs manually
86+
- JavaScript referencing application routes
87+
6088
Class and function changes
6189
==========================
6290
Several classes and functions have been changed or removed. If your extension or code uses phpBB internals, you’ll want to:

0 commit comments

Comments
 (0)