Skip to content

Commit

Permalink
SC-455: Env function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderM91 committed Jun 26, 2019
1 parent 2081866 commit c0b3d7e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/SprykerShop/Yves/ShopApplication/ShopApplicationConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit c0b3d7e

Please sign in to comment.