Trying to add a custom spunje to a custom sprinkle without success. Getting “UserFrosting \ Sprinkle \ Core \ Util \ BadClassNameException”
I get no error from simply having a custom sprunje in the Sprunje folder …
- sprinkles/MySprinkle/src/Sprunje/MyDataThing.php
However, referencing it from the sprinkles/MySprinkle/src/ServicesProvider/ServicesProvider.php class triggers the runtime error.
The tutorial says I only need to create the sprunje file (extends Sprunje) … but clearly I have to add a declaration somewhere else too?
NOTE: Maybe my mistake is in thinking I can map mydatathing_sprunje to the MyDataThingSprunje in the ServicesProvider.php class. I’m looking through the core code to make better sense of it — would help if there was a recipe that added a custom sprunje.