-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathscoper.inc.php
47 lines (40 loc) · 1.42 KB
/
scoper.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
use Isolated\Symfony\Component\Finder\Finder;
// You can do your own things here, e.g. collecting symbols to expose dynamically
// or files to exclude.
// However beware that this file is executed by PHP-Scoper, hence if you are using
// the PHAR it will be loaded by the PHAR. So it is highly recommended to avoid
// to auto-load any code here: it can result in a conflict or even corrupt
// the PHP-Scoper analysis.
return [
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#prefix
'prefix' => 'OCA\\SharePoint\\Vendor',
// output-dir is only possible with php-scoper >= 0.18, but it is not compatible with other supported
// PHP versions, breaking CI. So we stick with 0.17.0 until we can afford to drop testing on PHP < 8.2.
// All other 0.17.* version are factually broken with PHP 8.0.
//'output-dir' => 'lib/Vendor',
// For more see: https://github.com/humbug/php-scoper/blob/master/docs/configuration.md#finders-and-paths
'finders' => [
Finder::create()->files()
->exclude([
'test',
'composer',
'bin',
])
->notName('autoload.php')
->in('vendor/vgrem'),
Finder::create()->files()
->exclude([
'test',
'composer',
'bin',
])
->notName('autoload.php')
->in('vendor/firebase'),
],
];