sharepoint/scoper.inc.php

43 строки
1.3 KiB
PHP

<?php
declare(strict_types=1);
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'),
],
];