PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
30 Oct 2024

Summary of Changes

This implements a trait to be used in combination with the InstallerScriptInterface

Testing Instructions

I have no real idea, how to test it. You need an Extension using a install script with the InstallerScriptInterface. Using this trait should resolve the interface and give you some additional options like:

you can set

  • a minimum PHP version which is required
  • a minimum Joomla! version which is required
  • files to be removed
  • creating a dashboard menu onthefly

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar bembelimen bembelimen - open - 30 Oct 2024
avatar bembelimen bembelimen - change - 30 Oct 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Oct 2024
Category Libraries
avatar laoneo
laoneo - comment - 31 Oct 2024

In general I'm not sure if the trait is the right approach. I would prefer a base class.

avatar bembelimen bembelimen - change - 31 Oct 2024
Labels Added: PR-5.3-dev
avatar wilsonge
wilsonge - comment - 1 Nov 2024

What's the value of deprecating and forcing people to move. I mean I'm not fussed whether we use a base class or a trait to be honest - but I don't see the value of just deprecating and moving to the other one forcing code changes for next to no benefit.

avatar HLeithner
HLeithner - comment - 4 Nov 2024

I miss an interface for this trait and I would replace the string type with an enum.

I think the goal is to get type safety with out b/c break.

avatar laoneo
laoneo - comment - 4 Nov 2024

The interface exists already, but I couldn't change the InstallerClass without braking bc at the time I made it.

Add a Comment

Login with GitHub to post a comment