? J4 Issue ?
avatar mbabker
mbabker
25 Oct 2018

In 3.x we made the Joomla\CMS\Image classes extend the Joomla\Image classes from the Framework and deprecated the CMS classes. After this happened, we decided to deprecate the Framework package. So, the CMS needs to break this class inheritance (which is technically a B/C break) and basically inline all the code back into the CMS namespace.

avatar mbabker mbabker - open - 25 Oct 2018
avatar joomla-cms-bot joomla-cms-bot - change - 25 Oct 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Oct 2018
avatar brianteeman brianteeman - change - 30 Oct 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 30 Oct 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Mar 2019
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Mar 2019
Category Code style
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2019
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 7 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 9 Apr 2019
Category Code style
avatar mbabker mbabker - close - 24 May 2019
avatar mbabker
mbabker - comment - 24 May 2019

Hmm, not the template or the test architecture. Odds are nobody's touching it.

avatar mbabker mbabker - change - 24 May 2019
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2019-05-24 12:05:34
Closed_By mbabker
avatar SharkyKZ
SharkyKZ - comment - 22 Jul 2019

This needs to be done one way or another. I could give it a try but I have no idea how to map Framework versions to CMS versions.

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Jul 2019
Status Closed New
Closed_Date 2019-05-24 12:05:34
Closed_By mbabker
avatar franz-wohlkoenig franz-wohlkoenig - reopen - 22 Jul 2019
avatar mbabker
mbabker - comment - 22 Jul 2019

Framework 1.x is used in CMS 3.x

Framework 2.x is used in CMS 4.x

For all intents and purposes, you just need to copy the code from the Joomla\Image classes back into Joomla\CMS\Image classes and undo the deprecations of the CMS' classes and not have them extend the Framework classes. Then joomla/image can be removed from the Composer manifest.

avatar SharkyKZ
SharkyKZ - comment - 22 Jul 2019

What about doc blocks? For example, Joomla\Image\Image::$generateBestQuality has @since 1.4.0 while Joomla\CMS\Image\Image::$generateBestQuality has @since 3.7.0. I suppose we should use CMS versions. But what about versions for methods and properties not documented in CMS, e.g. Joomla\Image\Image::watermark() with 1.3.0 version?

avatar mbabker
mbabker - comment - 22 Jul 2019

The version it was introduced into the CMS API is what the doc block should be.

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Jul 2019
Status New Discussion

Add a Comment

Login with GitHub to post a comment