Skip to content

Commit

Permalink
scope
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 29, 2024
1 parent 9c92eed commit 98dbcf8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions prefix-code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 98dbcf8

Please sign in to comment.