Skip to content

Commit d6911cc

Browse files
committed
Scope dependencies
Only phpDocumentor and webmozart/assert packages are effectively scoped. All other dependencies need to be unchaged for the client.
1 parent cd965fc commit d6911cc

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ package: tools/box
5656
$(eval VERSION=$(shell git describe --abbrev=0 --tags 2> /dev/null | sed -e 's/^v//' || echo 'dev'))
5757
@rm -rf build/phar && mkdir -p build/phar
5858

59-
cp -r src LICENSE composer.json build/phar
59+
cp -r src LICENSE composer.json scoper.inc.php build/phar
6060
sed -e 's/@@version@@/$(VERSION)/g' manifest.xml.in > build/phar/manifest.xml
6161

6262
cd build/phar && \
@@ -89,4 +89,4 @@ tools/infection.pubkey:
8989
curl -Ls https://github.com/infection/infection/releases/download/0.9.0/infection.phar.pubkey -o tools/infection.pubkey
9090

9191
tools/box:
92-
curl -Ls https://github.com/humbug/box/releases/download/3.0.0-beta.0/box.phar -o tools/box && chmod +x tools/box
92+
curl -Ls https://github.com/humbug/box/releases/download/3.0.0-beta.4/box.phar -o tools/box && chmod +x tools/box

box.json.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"exclude-composer-files": true,
88
"check-requirements": false,
99
"main": "vendor/autoload.php",
10+
"compactors": [
11+
"KevinGH\\Box\\Compactor\\PhpScoper"
12+
],
1013
"banner": [
1114
"This file is part of the zalas/phpunit-injector project.",
1215
"",

scoper.inc.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);
2+
3+
return [
4+
'whitelist' => [
5+
'Psr\Container\*',
6+
'PHPUnit\Framework\*',
7+
'Symfony\Component\*',
8+
'Zalas\Injector\*',
9+
],
10+
];

0 commit comments

Comments
 (0)