Remove specific type for adapter parameter from all installer methods #949
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#949
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ggppdk/Component-Builder:j4_installer_compatibility"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary of Changes
Remove type for $adapter parameter for methods in Installer script
Testing Instructions
Try installing in J4,
You get error
...InstallerScript::postflight(): Argument #2 ($adapter) must be of type JAdapterInstance, Joomla\CMS\Installer\Adapter\ModuleAdapter given
Expected result
Installer succeeds in J4
Actual result
Installer fails in J4
Documentation Changes Required
None
Noted, and is helpful.
Yet since the installer script is compiler build, we need to adapt the compiler and let it update the script.php on the next build.
Since I know the install script needs lots of love going to J4.
For example:
So we need to change this area in a big way, and is one of the major release blockers going to J4
Yet none of these changes is only JCB related, as JCB itself is build with itself, if we make these changes in the compiler it will immediately effect all extensions build with it.
That said we are working on refactoring the compiler and all changes like these must waite untill that is completed.
Hello, this change should be 100% compatible and should not break anything, as it simply removes the type from the parameters. With this change i able to compile a single package for modules and plugins that is installable in both J3 and J4
I would like to see GPG signed commits in the future 👍
I have merged this in favor modules and plugins, but note that this does not yet effect components directly.