Repository navigation
fix(activesync): declare src/ autoload in .horde.yml - #119
Conversation
The 3.3.0 release commit dropped the Horde\ActiveSync\ mapping for src/, so the operations-monitor classes no longer load and the admin health view stays hidden.
ralflang
left a comment
There was a problem hiding this comment.
Composer.json is a generated file. Editing it is useless.
🔍 CI ResultsOverall: ❌ 12/12 lanes failed TL;DR: ❌ Quality issues: PHPUnit: 976 tests failed; PHP-CS-Fixer: 51 files. Summary by PHP Version
Quality Metrics
❌ Failed Lanesphp8.1-dev
php8.1-stable
php8.2-dev
php8.2-stable
php8.3-dev
php8.3-stable
php8.4-dev
php8.4-stable
php8.5-dev
php8.5-stable
php8.6-dev
php8.6-stable
CI powered by horde-components • View full results |
composer.json is generated from the autoload section of .horde.yml. That section listed only the PSR-0 lib/ mapping, so the 3.3.0 release dropped the src/ PSR-4 entry. Declare Horde\ActiveSync\ -> src/ beside the existing lib/ rule so the next release keeps it.
|
The autoload section in The pull request now only adds |
horde-components copies the autoload section of .horde.yml into composer.json. The PSR-4 src/ mapping now lives in .horde.yml, and the release tool writes composer.json.
Summary
Horde\ActiveSync\→src/in the.horde.ymlautoload section, which is the sourcehorde-componentscopies intocomposer.json.Motivation
Horde\Components\Helper\Composer::_setAutoload()copies.horde.yml'sautoloadsection when that section exists. It only autosensessrc/when the section is absent. ActiveSync listed only the PSR-0lib/mapping, so the 3.3.0 release commitccb1eb1eregeneratedcomposer.jsonwithout thesrc/PSR-4 entry added indc5749dbbd.The ops classes stayed in the tree, but PHP could not load them.
ActiveSyncOpsSnapshotFactorythen reports "ActiveSync Ops support is not installed.", and the admin page hides the health strip.composer.jsonis generated. This pull request does not edit it. The next release run writes the PSR-4 mapping from.horde.yml.Changes
.horde.yml: addpsr-4: Horde\ActiveSync\: src/next to the existing PSR-0 rule.Test plan
composer.jsonwithhorde-componentsand confirm thepsr-4block forHorde\ActiveSync\→src/is presentclass_exists(Horde\ActiveSync\Ops\HealthEvaluator::class)is truehorde-activesync summary --format=jsonreturns a fleet summary