From c0b3d7eec514fedba3ea54d7379b74f8cf6d5932 Mon Sep 17 00:00:00 2001 From: Oleksandr Myrnyi Date: Wed, 26 Jun 2019 16:19:56 +0300 Subject: [PATCH] SC-455: Env function --- .../Yves/ShopApplication/ShopApplicationConfig.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/SprykerShop/Yves/ShopApplication/ShopApplicationConfig.php b/src/SprykerShop/Yves/ShopApplication/ShopApplicationConfig.php index c38dee4..b37a9fe 100644 --- a/src/SprykerShop/Yves/ShopApplication/ShopApplicationConfig.php +++ b/src/SprykerShop/Yves/ShopApplication/ShopApplicationConfig.php @@ -70,8 +70,18 @@ public function isDebugModeEnabled(): bool /** * @return string */ - protected function getTwigEnvironmentName(): string + public function getTwigEnvironmentName(): string { - return $this->get(ShopApplicationConstants::TWIG_ENVIRONMENT_NAME, APPLICATION_ENV); + return $this->get(ShopApplicationConstants::TWIG_ENVIRONMENT_NAME, $this->getTwigEnvironmentNameDefaultValue()); + } + + /** + * @deprecated Will be removed without replacement. + * + * @return string + */ + protected function getTwigEnvironmentNameDefaultValue(): string + { + return APPLICATION_ENV; } }