From d7c96610431353d5e0461f6f096d61a6bc28d201 Mon Sep 17 00:00:00 2001 From: Tom van der Laan Date: Tue, 30 Jan 2024 11:47:03 +0000 Subject: [PATCH] Add Moving from J to Namespace --- Moving from J to Namespace | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Moving from J to Namespace diff --git a/Moving from J to Namespace b/Moving from J to Namespace new file mode 100644 index 0000000..7fe211e --- /dev/null +++ b/Moving from J to Namespace @@ -0,0 +1,16 @@ +Class map in J3: + +[https://github.com/joomla/joomla-cms/blob/3.10.12/libraries/classmap.php] + +Class map in J5: + +[https://github.com/joomla/joomla-cms/blob/5.0-dev/plugins/behaviour/compat/src/classmap/classmap.php] + +How to handle Classes that have no new counterparts like: + +- Jerror +JError::raiseError() should be replaced with native exceptions. +JError::raiseWarning() and JError::raiseNotice should be replaced with calls to application's enqueueMessage() method to display warnings/notices. + +More info on backwars compatible issues: +[https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4] \ No newline at end of file