From 67f686c32388478719a6f1e6e728c4736239df80 Mon Sep 17 00:00:00 2001 From: MarioRadu Date: Thu, 12 Dec 2024 22:31:08 +0200 Subject: [PATCH] ignore development files on production env Signed-off-by: MarioRadu --- bin/composer-post-install-script.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/composer-post-install-script.php b/bin/composer-post-install-script.php index 834a2c6..21faae7 100644 --- a/bin/composer-post-install-script.php +++ b/bin/composer-post-install-script.php @@ -53,9 +53,10 @@ function getEnvironment(): string chdir(dirname(__DIR__)); -echo __DIR__ . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . PHP_EOL; +echo __DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . PHP_EOL; +echo __DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist'. PHP_EOL; -//echo realpath(__DIR__ . ) +echo realpath(__DIR__ . DIRECTORY_SEPARATOR . \Laminas\DevelopmentMode\Status::DEVEL_CONFIG . '.dist'); echo "Using environment setting: " . getEnvironment() . PHP_EOL;