| @@ 149-164 (lines=16) @@ | ||
| 146 | return $data; |
|
| 147 | } |
|
| 148 | ||
| 149 | private function processOverridenVariables(array $overrides) |
|
| 150 | { |
|
| 151 | $reader = $this->app['configuration']; |
|
| 152 | $logger = $this->app['logger']; |
|
| 153 | ||
| 154 | foreach($overrides as $variable => $value) |
|
| 155 | { |
|
| 156 | $logger->info(sprintf( |
|
| 157 | 'Override <important>%s</important> with value <important>%s</important>', |
|
| 158 | $variable, |
|
| 159 | $value |
|
| 160 | )); |
|
| 161 | ||
| 162 | $reader->overrideVariable($variable, $this->filterValue($value)); |
|
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | private function processCustomData(array $data) |
|
| 167 | { |
|
| @@ 166-181 (lines=16) @@ | ||
| 163 | } |
|
| 164 | } |
|
| 165 | ||
| 166 | private function processCustomData(array $data) |
|
| 167 | { |
|
| 168 | $reader = $this->app['configuration']; |
|
| 169 | $logger = $this->app['logger']; |
|
| 170 | ||
| 171 | foreach($data as $variable => $value) |
|
| 172 | { |
|
| 173 | $logger->info(sprintf( |
|
| 174 | 'Set custom data <important>%s</important> with value <important>%s</important>', |
|
| 175 | $variable, |
|
| 176 | $value |
|
| 177 | )); |
|
| 178 | ||
| 179 | $reader->setCustomData($variable, $this->filterValue($value)); |
|
| 180 | } |
|
| 181 | } |
|
| 182 | } |
|