Add a way for sprinkles to add custom locator path #853
Labels
architecture
Related to the framework architecture
core feature request
Feature request
needs discussion
A decision needs to be taken by the dev team
Milestone
Sprinkles can't actually add locator path, even when extending the service. Both
locator
andstreamBuilder
are frozen when trying to extend them and even if they weren't, the ressources path still need to be added to the SprinkleManager.Moreover, listing the locator path 3 times (One, two, three) looks like bad code to me. Using a config value or a dedicated service to return the list of path could probably fix this bad code, and the issue altogether. Problem is, a path requires 3 infos : The slug, the read/write status (currently defined in
System/ServicesProvider
) and the actual path (Currently defined in theSprinkleManager
), so a simplekey=> value
array in config can't do it.Also, I'm not sure why we don't use the locator to find the migrations classes, even if they are in
src/
, instead of the filesystem ?The text was updated successfully, but these errors were encountered: