8000 [FrameworkBundle] Support APP_BUILD_DIR · symfony/symfony@664af6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 664af6d

Browse files
ro0NLfabpot
authored andcommitted
[FrameworkBundle] Support APP_BUILD_DIR
1 parent 43066ff commit 664af6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php

Lines changed: 9 additions & 0 deletions
< 91B6 /tr>
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)
0