forked from nextcloud/tables
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscoper.inc.php
More file actions
28 lines (22 loc) 路 749 Bytes
/
Copy pathscoper.inc.php
File metadata and controls
28 lines (22 loc) 路 749 Bytes
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
<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
use Symfony\Component\Finder\Finder;
$depFinder = Finder::create()
->files()
->ignoreVCS(true)
->notName('autoload.php');
// .prod-deps is generated through `composer install --no-dev` and `composer update --no-dev`
$productionDependencies = file('.scoper-production-dependencies', FILE_IGNORE_NEW_LINES);
$productionDependencies = array_map(function (string $file): string {
return 'vendor/' . $file;
}, $productionDependencies);
$depFinder->in($productionDependencies);
return [
'prefix' => 'OCA\\Tables\\Vendor',
'output-dir' => 'lib/Vendor/',
'finders' => [$depFinder],
];