Skip to content

Bug: Double initializing of class #3855

Closed
@jbotka

Description

@jbotka

Describe the bug
Double initializing of the config class. Problem is that I am extending config class Filters from module. I have setup that I have shared configs between all apps and I am extending main config file located in shared folder by apps config. But happens that auto discovery is trying to make second initializing run in my shared folder a that makes fatal error for initializing already initialized class.

CodeIgniter 4 version
4.0.4 (develop)

Affected module(s)
Config

Expected behavior, and steps to reproduce if appropriate
Auto discovery should no try initialize already initialized class. There should be check to prevent it.

Context

  • OS: Windows 8.1 x64
  • Web server Apache
  • PHP version 7.4.11

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

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions