From 98dbcf86fe5fea8c69050f5838a544985f80a7e4 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 29 Jan 2024 02:13:47 +0100 Subject: [PATCH] scope --- prefix-code.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/prefix-code.sh b/prefix-code.sh index 1d087711e..fb3262ddd 100644 --- a/prefix-code.sh +++ b/prefix-code.sh @@ -23,19 +23,18 @@ note() # --------------------------- # 2. scope it -note "Downloading php-scoper 0.17.5" -# @todo upgrade to 0.18.1 -wget https://github.com/humbug/php-scoper/releases/download/0.17.5/php-scoper.phar -N --no-verbose +note "Downloading php-scoper 0.18.11" +wget https://github.com/humbug/php-scoper/releases/download/0.18.11/php-scoper.phar -N --no-verbose note "Running php-scoper" # Work around possible PHP memory limits -php -d memory_limit=-1 php-scoper.phar add-prefix bin config src packages vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code +php -d memory_limit=-1 php-scoper.phar add-prefix bin src vendor composer.json --config scoper.php --force --ansi --output-dir scoped-code # the output code is in "/scoped-code", lets move it up # the local directories have to be empty to move easily -rm -r bin config src vendor composer.json packages stubs +rm -r bin src vendor composer.json stubs mv scoped-code/* . note "Dumping Composer Autoload"