Comments (5)
You can do $vars->getContent()
to get a plain array back
from vars.
OK, that was easier than expected. ;-)
I assume that this way the configuration source type (PHP, YAML, ...) doesn't matter, correct?
from vars.
Yes, by the time you call getContent()
the source configs will of already be parsed.
from vars.
Alright, thanks a lot. :-)
from vars.
You can also getContent()
on individual imported files/fileresources, e.g.
$vars->getResource('example.yml')->getContent();
from vars.
Related Issues (16)
- Add toggle for recursive file searching
- Cannot iterate Vars HOT 1
- File dependency caching HOT 3
- How can I pass a null/empty env variable? HOT 6
- Silex-v2 functional? HOT 1
- Is is possible to get a config looks like this?
- Add support for .env
- Could the method AbstractResource::set() return $this? HOT 2
- I cannot login in my github desktop HOT 3
- Update docs to show api usage
- Suppress error flag for file importing
- If file doesn't exist, importing something else flag
- Change it so recursive file searching is not default
- vars.options
- Option to define loader to use HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vars.