-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathscoper.inc.php
More file actions
52 lines (48 loc) · 1.06 KB
/
scoper.inc.php
File metadata and controls
52 lines (48 loc) · 1.06 KB
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
51
52
<?php declare(strict_types = 1);
return [
'prefix' => 'Cvphar',
'exclude-namespaces' => [
// Provided by cv
'CvDeps',
// Provided by civicrm
'Civi',
'Guzzle',
'Symfony\Component\DependencyInjection',
// Drupal8+ bootstrap
'Drupal',
'Symfony\\Component\\HttpFoundation',
'Symfony\\Component\\Routing',
// Joomla bootstrap
'TYPO3\\PharStreamWrapper',
'Joomla\\',
],
'exclude-classes' => [
'/^(CRM_|HTML_|DB_|Log_)/',
'/^PEAR_(Error|Exception)/',
'DB',
'Log',
'JFactory',
'Civi',
'Drupal',
'Joomla',
],
'exclude-functions' => [
'/^authx_/',
'/^civicrm_/',
'/^wp_.*/',
'/^(drupal|backdrop|user|module)_/',
't',
],
'exclude-files' => [
'vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php'
],
'exclude-constants' => [
'JPATH_BASE',
'JPATH_LIBRARIES',
'CIVICRM_SETTINGS_PATH',
'DS',
'_JEXEC',
],
// Do not generate wrappers/aliases for `civicrm_api()` etc or various CMS-booting functions.
'expose-global-functions' => FALSE,
];