Saeven / zf3-circlical-user

Turnkey Authentication, Identity, and RBAC for Laminas and Zend Framework 3. Supports Doctrine and Middleware.
Mozilla Public License 2.0
36 stars 15 forks source link

PSR-4 #83

Closed CreativeNative closed 2 years ago

CreativeNative commented 3 years ago

For a correct composer PSR-4 autoloading, the folder "src/CirclicalUser" should be only "src/".

https://getcomposer.org/doc/01-basic-usage.md#autoloading

Here is an example: https://github.com/joequery/ComposerPSR4Example

So this:

src/CirclicalUser/Entity/Authentication.php

has to be this:

src/Entity/Authentication.php

The composer.json has to be updated like so:

"autoload": {
    "psr-4": {
      "CirclicalUser \\": "src/"
    },
},

The file /Module.php can be deleted.