| @@ 207-215 (lines=9) @@ | ||
| 204 | /** |
|
| 205 | * @return Environment |
|
| 206 | */ |
|
| 207 | public function getEnvironment() |
|
| 208 | { |
|
| 209 | if (!$this->hasEnvironment()) { |
|
| 210 | $environment = Environment::getInstance(); |
|
| 211 | $environment->setConfig($this->getConfig()); |
|
| 212 | $this->setEnvironmentTrait($environment); |
|
| 213 | } |
|
| 214 | return $this->getEnvironmentTrait(); |
|
| 215 | } |
|
| 216 | ||
| 217 | /** |
|
| 218 | * @param Environment $environment |
|
| @@ 147-154 (lines=8) @@ | ||
| 144 | /** |
|
| 145 | * @return Environment |
|
| 146 | */ |
|
| 147 | public function getEnvironment() |
|
| 148 | { |
|
| 149 | if (!$this->hasEnvironment()) { |
|
| 150 | $environment = Environment::getInstance(); |
|
| 151 | $this->setEnvironment($environment->setConfig($this->getConfig())); |
|
| 152 | } |
|
| 153 | return $this->getEnvironmentTrait(); |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * Add log Record |
|
| @@ 77-87 (lines=11) @@ | ||
| 74 | * @return Environment |
|
| 75 | * @throws Exception |
|
| 76 | */ |
|
| 77 | public function getEnvironment() |
|
| 78 | { |
|
| 79 | if (!$this->hasEnvironment()) { |
|
| 80 | $environment = Environment::getInstance(); |
|
| 81 | if ($this->hasConfig()) { |
|
| 82 | $environment->setConfig($this->getConfig()); |
|
| 83 | } |
|
| 84 | $this->setEnvironment($environment); |
|
| 85 | } |
|
| 86 | return $this->getEnvironmentTrait(); |
|
| 87 | } |
|
| 88 | ||
| 89 | /** |
|
| 90 | * @param Request $request |
|