jemproject / JEM-Project

JEM - an Event Manager for Joomla
https://www.joomlaeventmanager.net
GNU General Public License v3.0
25 stars 36 forks source link

4.2.2 Question #1721

Closed jojo12 closed 2 months ago

jojo12 commented 2 months ago

I am trying to develop a JEM which doesn't need the backward plugin. Is this right?: when I get an error e.g. "class JDate not found" that I have to insert "use Joomla\CMS\Date\Date;" AND to exchange 'JDate' with 'Date'? In the plugin behaviour/compat/src/classmap there is a classmap.php which shows all these classes we have to exchange until J!6 and so to procede with all such errors? Important: if you are using the cassiopeia template, you get much more information about the errors inside the call stack!

mckillo commented 2 months ago

If you need to change 'class J...' (J3/J4) to 'use ...' (J4/J5), you can use this reference link: https://manual.joomla.org/migrations/44-50/compat-plugin/

When J6 goes out and J4 end of life, this backward plugin should be unpublished/delete. For the moment, it's better to have active, but in new JEM version should eliminate of rest of J3 & J4 because now they deprecated and with J6 will disappear.

Other thing to change is convert all JEM plugins to the new plugin structure..... first finder and after the others.

mckillo commented 2 months ago

Test JEM with commit above (more review migration J class).

jojo12 commented 2 months ago

I tested a lot w/o compat plugin, replaced and tested again. Then I proposed my solutions in commits in 4.2.2-dev. You had found not all.