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

Support to return all loaded environments #2

Closed
wants to merge 1 commit into from

Conversation

Costamilam
Copy link
Contributor

It is now possible to get all the environments loaded as an associative array

It is now possible to get all the environments loaded as an associative array
@brcontainer
Copy link
Member

Now configuration files have been separated from App::env() (with the exception of ./system/application/Config/config.php) and can be loaded by the class Inphinit\Experimental\Config using:

<?php
use Inphinit\Experimental\Config;

...

var_dump(Config::load('example')->foobar);

or

var_dump(Config::load('example')->get('foobar'));

I'll document it soon.

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

Successfully merging this pull request may close these issues.

2 participants