wintercms / wintercms/winter

Config::registerNamespaceAlias() doesn't seem to be working as intended

Open
#1,261 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.