forked from qossmic/deptrac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoper.inc.php
29 lines (25 loc) · 812 Bytes
/
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
<?php
declare(strict_types=1);
use Isolated\Symfony\Component\Finder\Finder;
$polyfillsBootstrap = Finder::create()
->files()
->in(__DIR__ . '/vendor/symfony/polyfill-*')
->name('*.php');
return [
'prefix' => null, // string|null
'finders' => [], // Finder[]
'patchers' => [], // callable[]
'files-whitelist' => array_map(
static function ($file) {
return $file->getPathName();
},
iterator_to_array($polyfillsBootstrap)
),
'whitelist' => [
'Qossmic\\Deptrac\\*',
'Symfony\\Polyfill\\*',
],
'whitelist-global-constants' => true, // bool
'whitelist-global-classes' => true, // bool
'whitelist-global-functions' => true, // bool
];