forked from civicrm/cv
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscoper.inc.php
42 lines (37 loc) · 885 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
42
<?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',
],
'exclude-classes' => [
'/^(CRM_|HTML_|DB_|Log_)/',
'DB',
'Log',
'JFactory',
'Civi',
'Drupal',
],
'exclude-functions' => [
'/^civicrm_/',
'/^wp_.*/',
'/^(drupal|backdrop|user|module)_/',
't',
],
'exclude-files' => [
'vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php'
],
// Do not generate wrappers/aliases for `civicrm_api()` etc or various CMS-booting functions.
'expose-global-functions' => FALSE,
];