Custom CLI Return "Cannot declare class name in use" |
Assuming your app/config/Autoload.php contains this entry:
'Someone\plugins' => ROOTPATH . 'someone/plugins' Then the namespace in your code says that your file is in: someone/plugins/Commands folder I've tested the above and your code works. I don't understand your Edit: lineĀ "I put it on the ThirdParty folder. Full path is on "ThirdParty\trydummy\src". Your file should not be in this directory, it has to be in a 'Commands' folder Try using php spark namespaces to check your namespaces map and can be found. Once you have it working you could change the namespace mapping: Eg: In app/config/Autoload.php CustomSparkĀ => ROOTPATH . 'someone/plugins' and in your file: namespace CustomSpark\Commands; OR something even more sensible ! |
Messages In This Thread |
Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 03-31-2021, 08:28 AM
RE: Custom CLI Return "Cannot declare class name in use" - by [email protected] - 03-31-2021, 02:54 PM
RE: Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 03-31-2021, 06:51 PM
RE: Custom CLI Return "Cannot declare class name in use" - by [email protected] - 04-01-2021, 02:12 AM
RE: Custom CLI Return "Cannot declare class name in use" - by simonickalexs - 04-01-2021, 03:20 AM
|