diff options
author | Wolfy-J <[email protected]> | 2018-09-08 00:01:03 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-08 00:01:03 +0300 |
commit | fc7f7f7ac17ef0838bbdfd578b4e17821b287aee (patch) | |
tree | 71395ed820d9e685baec2875dc68176814834243 /service/env | |
parent | bf086da11191848ef3a74602d4c652034357e972 (diff) |
added support for logger in DI
Diffstat (limited to 'service/env')
-rw-r--r-- | service/env/service.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/service/env/service.go b/service/env/service.go index 561907a0..a4d3959c 100644 --- a/service/env/service.go +++ b/service/env/service.go @@ -4,8 +4,8 @@ const ( // ID contains default service name. ID = "env" - // RR_ENV contains default env key to indicate than php running in RR mode. - RR_ENV = "RR" + // RRKey contains default env key to indicate than php running in RR mode. + RRKey = "RR" ) // Service provides ability to map _ENV values from config file. @@ -25,7 +25,7 @@ func NewService(defaults map[string]string) *Service { func (s *Service) Init(cfg *Config) (bool, error) { if s.values == nil { s.values = make(map[string]string) - s.values[RR_ENV] = "yes" + s.values[RRKey] = "yes" } for k, v := range cfg.Values { |