Config::registerNamespaceAlias() doesn't seem to be working as intended
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.5k
- Forks
- 246
- Avg merge
- 19h 2m
- Merged PRs (30d)
- 7
Description
Winter CMS Build
dev-develop
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
Winter.Debugbar
Issue description
// Provide the winter.debugbar config under the debugbar namespace
Config::registerNamespaceAlias('winter.debugbar', 'debugbar');
Should be the same as
Config::set('debugbar', Config::get('winter.debugbar::config'));
but it doesn't seem to work.
Steps to replicate
Install winter.debugbar (using the Config::registerNamespaceAlias() method) and try to edit the configured collectors
Workaround
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Config::registerNamespaceAlias() entry point and reproduce the issue with the Winter.Debugbar plugin on PHP 8.1 and MySQL/MariaDB. Compare the alias behavior with Config::set('debugbar', Config::get('winter.debugbar::config')); done means the debugbar namespace exposes the configured collectors for editing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100