cloudfoundry-community / cf-helper-php

Cloudfoundry helper in php
MIT License
18 stars 10 forks source link

change set env variable CloudFoundrySimulator #5

Closed nicolas-wallerand closed 7 years ago

nicolas-wallerand commented 7 years ago

add method setVar() set Apache environement variable exists set using putenv

ArthurHlt commented 7 years ago

Next time, try to add more context. Say why you want to do that, in which case you needed this and so on. On opensource, message have to be descriptive and not just a list of what you did. Here, you giving a trace of your work and it can be interesting for others.

that's ok here because I did the work to guess and understand, in other context they can just skip your PR.

ArthurHlt commented 7 years ago

For the context:

In some case applications can use only the simulation part (to run their app locally or on cloud without pain) of this helper and go through apache functions or getenv function.

This PR is here to feed env vars for this 2 usecases for apps which don't use $_ENV superglobal (functionnality not enabled by default in most of php.ini)