Skip to content

Bug: can't use Auth config in different namespace than App #761

@jozefrebjak

Description

@jozefrebjak

PHP Version

8.1.16

CodeIgniter4 Version

4.3.6

Shield Version

dev-develop

Which operating systems have you tested for this bug?

macOS

Which server did you use?

fpm-fcgi

Database

MariaDB 10.2

Did you customize Shield?

No.

What happened?

After merge of #748 we cant use Auth config in different namespace than App.

Steps to Reproduce

We are storing Auth as a module in ROOTPATH/modules/Auth folder. There is Config folder with Auth.php config. This worked before merge #748, after merge our App is broken. We recently updated to latest dev-develop commit hash and go back commit to commit to find when something changed.

We are using App/Config/Autoload.php to load module like:

        'Auth'           => ROOTPATH . 'modules/Auth/',

Expected Output

We would like to store Auth as module in our App.

Anything else?

Workaround is to move Auth.php to App/Config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions