Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

Built in config? #822

Open
trollboy opened this issue Nov 28, 2021 · 5 comments
Open

Built in config? #822

trollboy opened this issue Nov 28, 2021 · 5 comments

Comments

@trollboy
Copy link
Contributor

Is there a built in config I'm missing? Something to read a .env or config.ini/yaml and avail those settings to the entire application? Should there be? Seems like low hanging fruit that would be a nice time saver.

@leocavalcante
Copy link
Owner

Hi!
No, actually Siler does not provide any default settings, it is more like a library than a framework.

@trollboy
Copy link
Contributor Author

right but it does provide things like graphql integration... I dunno just figured it would be a nice helper function.

@trollboy
Copy link
Contributor Author

trollboy commented Dec 1, 2021

looks like there already is an undocumented one? https://github.com/laminas/laminas-config

@leocavalcante
Copy link
Owner

https://github.com/leocavalcante/siler/blob/main/src/Config/Config.php uses Laminas Config underneath. Is that what you mean?
I thought it was about providing skeleton config like in frameworks.

@trollboy
Copy link
Contributor Author

oh no, just a standard built in for loading my configs. Might be worth updating the docs to illustrate that functionality.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants