Skip to content

refactor!: remove package.yml#6533

Merged
gharlan merged 4 commits into
6.xfrom
remove-package-yml
May 31, 2026
Merged

refactor!: remove package.yml#6533
gharlan merged 4 commits into
6.xfrom
remove-package-yml

Conversation

@gharlan
Copy link
Copy Markdown
Member

@gharlan gharlan commented May 31, 2026

Removes package.yml from addons entirely. It was already reduced to a single meaningful value (default_config); this finishes the job.

Two commits:

  1. default_configAddon::$defaultConfig — the last documented package.yml value now lives as an overridable public protected(set) array $defaultConfig property on the addon class, mirroring how $load is handled.
  2. Drop package.yml loading and its cachingloadProperties(), the packages.cache properties cache, the install-time package.yml parse check and the package.yml JSON schema are gone.

The in-memory property store (get/has/set/removeProperty) stays — successmsg is still set from within the install() hook and read afterwards.

Breaking changes

  • Addons must no longer ship a package.yml. Config defaults move to the $defaultConfig property.
  • Addon::FILE_PACKAGE, Addon::loadProperties() and the package.yml JSON schema are removed.

gharlan added 2 commits May 31, 2026 15:46
…fig property

The default_config setting was the last documented value in package.yml.
Addons now declare their config defaults via a public protected(set)
$defaultConfig property (overridable in subclasses), mirroring how $load
is handled.
package.yml is no longer read at all. The property getters/setters
(get/has/set/removeProperty) remain as an in-memory store (e.g. successmsg
set from within the install() hook), but loadProperties(), the package.yml
properties cache, the install-time package.yml parse check and the package.yml
JSON schema are gone.
@gharlan gharlan added this to the REDAXO 6.0 milestone May 31, 2026
@gharlan gharlan merged commit c88575c into 6.x May 31, 2026
16 checks passed
@gharlan gharlan deleted the remove-package-yml branch May 31, 2026 14:35
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