refactor: remove empty register() methods in Boot classes #33
No reviewers
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-admin#33
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/clean-empty-register"
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?
Fixes #17
Summary
register(): voidoverride fromsrc/Mod/Hub/Boot.phpregister(): voidoverride fromsrc/Website/Hub/Boot.phpThese Boot classes use the event-driven
$listenspattern where registration happens in event handlers (onAdminPanel,onDomainResolving), not inregister(). The empty overrides served no purpose since the parentServiceProvideralready provides the method.The two other Boot files were left as-is:
src/Boot.php— has a realregister()implementation (module paths + search singleton)Service/Boot.php— has noregister()method at allView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.