Skip to content

Commit ae64ab5

Browse files
ro0NLfabpot
authored andcommitted
[FrameworkBundle] Support APP_BUILD_DIR
1 parent 3e34f21 commit ae64ab5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Kernel/MicroKernelTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ public function getCacheDir(): string
114114
return parent::getCacheDir();
115115
}
116116

117+
public function getBuildDir(): string
118+
{
119+
if (isset($_SERVER['APP_BUILD_DIR'])) {
120+
return $_SERVER['APP_BUILD_DIR'].'/'.$this->environment;
121+
}
122+
123+
return parent::getBuildDir();
124+
}
125+
117126
public function getLogDir(): string
118127
{
119128
return $_SERVER['APP_LOG_DIR'] ?? parent::getLogDir();

0 commit comments

Comments
 (0)