Skip to content

Commit 0e2a736

Browse files
committed
fix(Watermarking): Scope dependencies using php-scoper
to avoid dependency hell when installing integration_replicate at the same time as integration_openai Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent a3385e4 commit 0e2a736

13 files changed

Lines changed: 7043 additions & 2061 deletions

File tree

composer.json

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,41 @@
1111
"cs:check": "php-cs-fixer fix --dry-run --diff",
1212
"cs:fix": "php-cs-fixer fix",
1313
"psalm": "psalm.phar --no-cache",
14-
"test:unit": "phpunit --config tests/phpunit.xml"
14+
"test:unit": "phpunit --config tests/phpunit.xml",
15+
"post-install-cmd": [
16+
"@composer bin all update --ansi",
17+
"grep -r 'OCA\\\\Replicate\\\\Vendor' ./vendor || vendor/bin/php-scoper add-prefix --prefix='OCA\\Replicate\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"",
18+
"composer dump-autoload"
19+
],
20+
"post-update-cmd": [
21+
"@composer bin all update --ansi",
22+
"grep -r 'OCA\\\\Replicate\\\\Vendor' ./vendor || vendor/bin/php-scoper add-prefix --prefix='OCA\\Replicate\\Vendor' --output-dir=\".\" --working-dir=\"./vendor/\" -f --config=\"../scoper.inc.php\"",
23+
"composer dump-autoload"
24+
]
1525
},
1626
"require": {
1727
"php": "^8.1",
28+
"bamarni/composer-bin-plugin": "^1.8",
1829
"fileeye/pel": "^0.12.0",
1930
"james-heinrich/getid3": "^1.9"
2031
},
2132
"require-dev": {
22-
"nextcloud/coding-standard": "^1.1",
23-
"psalm/phar": "6.*",
24-
"nextcloud/ocp": "dev-master",
25-
"phpunit/phpunit": "^9.5"
33+
"nextcloud/ocp": "dev-master"
2634
},
2735
"config": {
36+
"allow-plugins": {
37+
"bamarni/composer-bin-plugin": true,
38+
"composer/package-versions-deprecated": true
39+
},
2840
"platform": {
2941
"php": "8.1.0"
3042
}
43+
},
44+
"extra": {
45+
"bamarni-bin": {
46+
"bin-links": true,
47+
"target-directory": "vendor-bin",
48+
"forward-command": true
49+
}
3150
}
3251
}

0 commit comments

Comments
 (0)