-
Notifications
You must be signed in to change notification settings - Fork 5
/
scoper.inc.php
41 lines (34 loc) · 931 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
30
31
32
33
34
35
36
37
38
39
40
41
<?php
declare(strict_types=1);
use Isolated\Symfony\Component\Finder\Finder;
/**
* Prefixes source files. Vendor files are prefixed with scoper.vendor.inc.php. This is to speed up the scoping process
* as there is no need to re-scope vendor files on every run.
*
* @see https://github.com/humbug/php-scoper/blob/master/docs/configuration.md
*/
return [
'prefix' => '_MyParcelNL',
'finders' => [
Finder::create()
->append([
'myparcelnl.php',
'composer.json',
]),
Finder::create()
->files()
->in(['src', 'config', 'controllers']),
],
'exclude-namespaces' => [
// Exclude global namespace
'/^$/',
'Composer',
'MyParcelNL',
// Provided by PrestaShop
'PrestaShop',
'PrestaShopBundle',
'Doctrine',
'Symfony',
'GuzzleHttp',
],
];