-
Notifications
You must be signed in to change notification settings - Fork 137
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
Load from string? #51
Comments
I agree with you, it could be a nice feature. What do you think @hassankhan? |
If I'm not mistaken, you could subclass |
There's indeed needs. E.g. when the config file has configurations for plugins, and we only want to pass part of the config to the plugin for isolation. So that would be like: $config = new Config('config.yaml');
$plugin = new $plugin_name(new Config($config->plugin->plugin_name)); This is indeed just a class extends |
I've created pull request #111 for loading from string. |
…it/phpunit-8.2.1 Bump phpunit/phpunit from 8.2.0 to 8.2.1
Was this discussed before? i couldn't find an issue about it.
Loading an XML from string will be beneficial since sometimes we don't have a file saved on the file system to load.
The text was updated successfully, but these errors were encountered: