-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscoper.inc.php
More file actions
26 lines (22 loc) · 862 Bytes
/
Copy pathscoper.inc.php
File metadata and controls
26 lines (22 loc) · 862 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
<?php declare( strict_types=1 );
/**
* PHP-scoper config. Prefix passed via composer script's --prefix flag.
*
* @since 2.0.0
* @version 2.0.0
*
* @package DeepWebSolutions\PluginTemplate
*/
$config = __DIR__ . '/vendor/ahegyes/wordpress-configs/php/php-scoper';
$vendor = __DIR__ . '/vendor';
$wp_framework = ( require "$config/contrib/wp-framework.inc.php" )( $vendor, __DIR__ );
$php_di = ( require "$config/contrib/php-di.inc.php" )( $vendor );
return ( require "$config/scoper-base.inc.php" )(
array(
'project_dir' => __DIR__,
'finders' => array_merge( $wp_framework['finders'], $php_di['finders'] ),
'exclude_files' => $php_di['exclude_files'],
// `patchers` postdates `finders` in the wp-framework partial; tolerate an older installed wordpress-configs.
'patchers' => $wp_framework['patchers'] ?? array(),
)
);