Comments (4)
I've already seen some extensions for Nette doing this. It's a good concept 👍
from bootstrap.
IMHO, this environment default automatic magic is everytime wrong. Hard to test, hard to debug, hard to keep safe. Environment is global and it can be changed from many places. From my point of view, it is a bad concept. I saw it in many projects, not PHP only.
It can be easily solved in user's bootstrap $configurator->addParams()
.
$configurator->addParams([
'envDbUser' => getenv('PROJECT_DB_USER'),
'envDbPass' => getenv('PROJECT_DB_PASS'),
]);
from bootstrap.
Well, I admit it might be little magic, but very useful. A was playing with Symfony 6 months ago and I like autoresolving SYMFONY__<name>
parameters in config from ENV.
Never mind, I'll implement it by my own in 3rd package. :-) Thank you guys for the feedback.
from bootstrap.
Well, I think this might be part of a framework. If I am wrong, just tell me.
Only environment variables handling addon I have found is this one: https://componette.com/rixxi/env/.
from bootstrap.
Related Issues (19)
- It is impossible to disable debugMode in configuration file HOT 7
- The User panel inside Debugger Bar is not displaying since Nette 2.2.4 HOT 2
- Change Tracy error template via Nette Extension
- Can not be used without nette/mail or nette/safe-stream HOT 2
- Exclude classes for nette/application HOT 1
- New container for each test HOT 5
- Split NetteExtension to each component into separate bridges in backwards compatible way HOT 10
- Configurator: unable to overwrite parameters set by addConfig by calling addParameters HOT 5
- bug in generated container file HOT 1
- Setup DI container parent class HOT 1
- Detect debugMode by IP behind proxy or in docker container HOT 11
- Wrong version HOT 2
- Missing Nette\Bridges\DatabaseDI\DatabaseExtension HOT 2
- Incompability with Tracy\Tracy < 2.5 HOT 3
- Add autoconfiguration of Nette Extensions HOT 2
- The default parameter values are incorrectly determined when calling Nette Application as a Composer script HOT 2
- cookie 'tracy-debug' HOT 2
- `iterable` type for event properties leads to exception in PhpStan HOT 1
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 bootstrap.