spreed/scoper.inc.php
Joas Schilling 3ddfa913d2
fix(dependencies): Migrate to PHP scoper
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-10-29 23:57:31 +01:00

50 lines
1.3 KiB
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2024 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 autoload 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\\Talk\\Vendor',
'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/cuyz'),
Finder::create()->files()
->exclude([
'test',
'composer',
'bin',
])
->notName('autoload.php')
->in('vendor/psr/simple-cache'),
Finder::create()->files()
->exclude([
'test',
'composer',
'bin',
])
->notName('autoload.php')
->in('vendor/firebase'),
],
];