Feature PR-6.0-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

There are also two "custom" methods to extend preflight/postflight and still benefit from their functionality.

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: joomla/Manual#448

  • 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.

avatar bembelimen bembelimen - change - 3 Mar 2025
Labels Added: Feature
avatar HLeithner
HLeithner - comment - 4 Mar 2025

This pull request has been automatically rebased to 6.0-dev.

avatar HLeithner HLeithner - change - 4 Mar 2025
Title
[5.3] Replace InstallerScript class with a trait
[6.0] Replace InstallerScript class with a trait
avatar HLeithner HLeithner - edited - 4 Mar 2025
avatar bembelimen bembelimen - change - 12 Mar 2025
Labels Added: PR-6.0-dev
Removed: PR-5.3-dev
avatar bembelimen bembelimen - change - 18 Apr 2025
Title
[6.0] Replace InstallerScript class with a trait
[6.0] Fullfill InstallerScriptInterface with a trait
avatar bembelimen bembelimen - edited - 18 Apr 2025
avatar bembelimen bembelimen - change - 25 Apr 2025
Title
[6.0] Fullfill InstallerScriptInterface with a trait
[6.0] Fulfill InstallerScriptInterface with a trait
avatar bembelimen bembelimen - edited - 25 Apr 2025
avatar bembelimen bembelimen - change - 25 Apr 2025
The description was changed
avatar bembelimen bembelimen - edited - 25 Apr 2025
avatar bembelimen bembelimen - change - 25 Apr 2025
The description was changed
avatar bembelimen bembelimen - edited - 25 Apr 2025

Add a Comment

Login with GitHub to post a comment