Skip to content

refactor!: remove the addon properties - #6687

Merged
gharlan merged 1 commit into
6.xfrom
remove-addon-properties
Sep 22, 2026
Merged

gharlan merged 1 commit into
6.xfrom
remove-addon-properties

Conversation

@gharlan

@gharlan gharlan commented Sep 22, 2026

Copy link
Copy Markdown
Member

Follow-up to #6684. Addon::setProperty(), getProperty(), hasProperty() and removeProperty() plus the backing array are gone.

The bag was a REDAXO 5 idiom: an install.php stashed values there and core picked them up later. In 6.x the addon hooks are typed and the metadata accessors (getAuthor(), getVersion(), getSupportPage(), getLicense()) read from composer.json / InstalledVersions, so nothing wrote to the bag any more — a grep over core, both addons and the project skeleton finds no writer.

Its only reader was successmsg in AddonManager::install(), removed along with it. That one does not fit 6.x regardless of the bag: install() is idempotent by contract and runs on every migrate, so a message meant for a one-time installation would reappear on every deploy. An addon that needs to abort an install still throws a UserMessageException.

No baseline changes. composer check is green, and console migrate still reports all four packages as OK.

The property bag was a REDAXO 5 idiom: an `install.php` set values that core picked up later. In 6.x
the addon hooks are typed and composer.json supplies the metadata, so nothing wrote to it any more.

Its only reader was the `successmsg` in `AddonManager::install()`, which no longer fits either:
`install()` is idempotent and runs on every `migrate`, so a message meant for a one-time installation
would reappear on every deploy. An addon that needs to abort still throws a `UserMessageException`.
@gharlan gharlan added this to the REDAXO 6.0 milestone Sep 22, 2026
@gharlan
gharlan merged commit df131ee into 6.x Sep 22, 2026
16 checks passed
@gharlan
gharlan deleted the remove-addon-properties branch September 22, 2026 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants