superglue / Superglue

Lightweight PHP Framework
7 stars 2 forks source link

add parameter to sgContext::getEnvironment() #5

Open jscheel opened 13 years ago

jscheel commented 13 years ago

sgContext::getEnvironment() should become sgContext::getEnvironment($param) so that you can pull specific elements from the environment array. Of course, this wouldn't matter if php would allow FAD: http://wiki.php.net/rfc/functionarraydereferencing