From c97ae9d20faf7b1cc285c80af4fc56c710c9bc28 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 13 Jan 2023 13:21:51 +0100 Subject: [PATCH] feat(dev-manual): Warn about the upcoming PSR-0 class loader removal Signed-off-by: Christoph Wurst --- .../app_upgrade_guide/upgrade_to_26.rst | 5 +++++ developer_manual/digging_deeper/psr.rst | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_26.rst b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_26.rst index 02b90ae8557..37614d53159 100644 --- a/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_26.rst +++ b/developer_manual/app_publishing_maintenance/app_upgrade_guide/upgrade_to_26.rst @@ -33,6 +33,11 @@ tbd Back-end changes ---------------- +Planned removal of PSR-0 class loading +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Nextcloud is still loading classes that follow the long deprecated and replaced :ref:`PSR-0 standard `. Nextcloud 26 is the last version that register a generic PSR-0 class loader. From Nextcloud 27 on apps have to either change class file names to match PSR-4 or ship their own (composer) class loader for PSR-0 files or. + Dependency Injection Parameters ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/developer_manual/digging_deeper/psr.rst b/developer_manual/digging_deeper/psr.rst index 0071a1f5214..c70ba36e429 100644 --- a/developer_manual/digging_deeper/psr.rst +++ b/developer_manual/digging_deeper/psr.rst @@ -13,7 +13,7 @@ On this page you find information about the implemented `php standards recommend PSR-0: Autoloading ------------------ -This standard has been deprecated and will be removed from Nextcloud. Please see the :ref:`PSR-4 section` instead. +This standard has been deprecated and will be removed in Nextcloud 27. Please see the :ref:`PSR-4 section` instead. .. _psr3: