Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileSystemResolver should let the user add its own origins #4883

Open
jecisc opened this issue Oct 10, 2019 · 0 comments

Comments

@jecisc
Copy link
Member

@jecisc jecisc commented Oct 10, 2019

FileLocator uses FileSystemResolver in order to resolve some locations.

The FileSystemResolver can answer a list of location it can resolve. If the location is in the list, it will ask the resolver, else it will go to the next resolver of the chain of responsibility.

I would like to add my own locations depending on the OS I am on, but currently, the locations are hardcoded.

It would be great to improve it. I see two possibilities:

  • Add a pragma <origin> to the methods defining an origin and collect them.
  • Store #supportedOrigins into a collection so that we can add our own in we need to.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.