Skip to content

Bug: Namespacing of app/Config folder vs. app/Controller #2826

Description

@samfullman

I've noticed what appears to be an inconsistency in CodeIgniter4 namespacing and wanted to enquire about the logic of it.

In CI4 namespacing, the system folder is CodeIgniter (which makes sense), and class files in all folders and subfolders in system reliably have the namespace
CodeIgniter\Folder[\Subfolder].

However in the app folder, which has a paucity of class files starting out, it's not so uniform: the namespace for files in the Config folder is simply Config, but the namespace for class files in Controller is App\Controller.

Is there an intentional reason for this? It seems inconsistent to me. It stands to reason that the app/Config folder files should also have the namespace App\Config

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions