From 55dae8b8e79054af6219786ff7ffd9b24815da5e Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Mon, 3 Aug 2026 17:29:10 +0300 Subject: [PATCH] Issue #533: Make sure that config/autoload/cors.local.php exists after Composer i/u Signed-off-by: alexmerlin --- bin/composer-post-install-script.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/composer-post-install-script.php b/bin/composer-post-install-script.php index 3d02d44..b2c29ed 100644 --- a/bin/composer-post-install-script.php +++ b/bin/composer-post-install-script.php @@ -42,6 +42,11 @@ function getEnvironment(): string * - `environment` key will indicate on what environments the file will be copied */ $files = [ + [ + 'source' => 'config/autoload/cors.local.php.dist', + 'destination' => 'config/autoload/cors.local.php', + 'environment' => [ENVIRONMENT_DEVELOPMENT, ENVIRONMENT_PRODUCTION], + ], [ 'source' => 'config/autoload/local.php.dist', 'destination' => 'config/autoload/local.php',