Skip to content

[DependencyInjection ] Standalone Environment Variable Processors component #33758

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

Closed
arnofo opened this issue Sep 30, 2019 · 3 comments
Closed

Comments

@arnofo
Copy link

arnofo commented Sep 30, 2019

Description
Symfony's way to handle the parsing of types for environment variables in configuration files is very useful.
Unfortunatly, in order to use it, i must first create a container object.

I think the Environment Variable Processors could be made into a standalone component in order to use it in any PHP projects.

Example
I created a composer plugin to automate a CMS installation, i need to allow the user to define env vars that sould be copied to the CMS configuration file.

The user can write his vars in the composer.json "extra" configuration.

I just need a way to know what type of vars i am to expect.

composer.json :

... 
"extra": {
    "my-plugin": {
      "config-extra-vars": {
        "EXEMPLE": "env(int:TEST)"
      }
    }
...
@carsonbot
Copy link

Thank you for this suggestion.
There has not been a lot of activity here for a while. Would you still like to see this feature?

@carsonbot
Copy link

Just a quick reminder to make a comment on this. If I don't hear anything I'll close this.

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

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

No branches or pull requests

3 participants