From 664af6d40d4b4ddb3731c33904072093e242f65e Mon Sep 17 00:00:00 2001 From: "Roland Franssen :)" Date: Wed, 12 Jul 2023 12:24:03 +0200 Subject: [PATCH] [FrameworkBundle] Support APP_BUILD_DIR --- .../Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php index f82e1fb209d77..3f42afb6686ec 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php +++ b/src/Symfony/Bundle/FrameworkBundle/Kernel/MicroKernelTrait.php @@ -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(); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy