Welcome Guest, Not a member yet? Register   Sign In
Custom CLI Return "Cannot declare class name in use"
#5

I found the problem, previously I add the someone\plugins namespace on composer.json manually, look like this

....
"autoload": {
"psr-4": {
"App\\": "app",
"Config\\": "app/Config",
"someone\\plugin\\": "app/ThirdParty/trydummy/src"
},
"exclude-from-classmap": [
"**/Database/Migrations/**"
]
},
.....

Then I forgot there's a Autoloader.php file, so I add there and delete the one on the composer.json.
Then I run this command `composer dump-autoload`, still occurred.
But I've changed the folder trydummy to try-dummy, and now it worked.
I don't know how to clear that mess that I've made. Thank you very much for your help!
Reply


Messages In This Thread
RE: Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 04-01-2021, 03:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB