-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscoper.inc.php
39 lines (35 loc) · 1.07 KB
/
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
<?php
/**
* Configuration file for PHP-Scoper
*
* @package Lazysizes
*/
// phpcs:disable PHPCompatibility.ControlStructures.NewExecutionDirectives.strict_typesFound
declare(strict_types=1);
use Isolated\Symfony\Component\Finder\Finder;
return array(
// The prefix configuration. If a non null value will be used, a random prefix will be generated.
'prefix' => 'Lazysizes\\Vendor',
// By default when running php-scoper add-prefix, it will prefix all relevant code found in the current working
// directory. You can however define which files should be scoped by defining a collection of Finders in the
// following configuration key.
//
// For more see: https://github.com/humbug/php-scoper#finders-and-paths.
'finders' => array(
Finder::create()
->files()
->ignoreVCS( true )
->notName( '/LICENSE|.*\\.md|.*\\.dist|Makefile|composer\\.json|composer\\.lock|\\.xml|\\.yml|\\.ini/' )
->exclude(
array(
'test',
)
)
->in( array( 'vendor/kornrunner', 'vendor/composer' ) ),
Finder::create()->append(
array(
'composer.json',
)
),
),
);