Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[FrameworkBundle] Support APP_BUILD_DIR
  • Loading branch information
ro0NL authored and fabpot committed Aug 4, 2023
commit 664af6d40d4b4ddb3731c33904072093e242f65e
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ public function getCacheDir(): string
return parent::getCacheDir();
}

public function getBuildDir(): string
{
if (isset($_SERVER['APP_BUILD_DIR'])) {
return $_SERVER['APP_BUILD_DIR'].'/'.$this->environment;
}

return parent::getBuildDir();
}

public function getLogDir(): string
{
return $_SERVER['APP_LOG_DIR'] ?? parent::getLogDir();
Expand Down