forked from totten/civix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scoper.inc.php
50 lines (42 loc) · 1.11 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
40
41
42
43
44
45
46
47
48
49
50
<?php declare(strict_types = 1);
return [
'prefix' => 'CivixPhar',
'exclude-namespaces' => [
// Provided by civicrm
'Civi',
'Guzzle',
'Symfony\Component\DependencyInjection',
// Drupal8+ bootstrap
'Drupal',
'Symfony\\Component\\HttpFoundation',
'Symfony\\Component\\Routing',
// Joomla bootstrap
'TYPO3\\PharStreamWrapper',
],
'exclude-classes' => [
'/^(CRM_|HTML_|DB_|Log_)/',
'civicrm_api3',
'Mixlib',
'DB',
'Log',
'JFactory',
'Civi',
'Drupal',
],
'exclude-functions' => [
'/^civicrm_/',
'/_civicrm_api_get_entity_name_from_camel/',
'/^wp_.*/',
'/^(drupal|backdrop|user|module)_/',
't',
],
// Do not generate wrappers/aliases for `civicrm_api()` etc or various CMS-booting functions.
'expose-global-functions' => FALSE,
// Do not filter template files
'exclude-files' => array_merge(
glob('src/CRM/CivixBundle/Resources/views/*/*.php'),
glob('extern/*/*/*.php'),
glob('extern/*/*.php'),
glob('vendor/symfony/polyfill-php80/Resources/stubs/*php'), /* [email protected] + [email protected] */
),
];