-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscoper.inc.php
More file actions
37 lines (33 loc) · 952 Bytes
/
scoper.inc.php
File metadata and controls
37 lines (33 loc) · 952 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
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* PHP-Scoper configuration file for Cache Hive.
*
* @package Cache_Hive
*/
use Isolated\Symfony\Component\Finder\Finder;
return array(
// The prefix that will be added to all namespaces and global classes.
// This is the answer to "how do I find the new namespace?". It's what you define here.
'prefix' => 'Cache_Hive\\Vendor',
// Tell Scoper which files to scope. We will target ONLY the Predis, Credis, Minify
// and their required PSR dependency directories within the `vendor` folder.
'finders' => array(
// Find and scope all the production dependencies.
Finder::create()
->files()
->in('vendor')
->path([
'predis/predis',
'colinmollenhour/credis',
'psr/log',
'psr/http-message',
'matthiasmullie/minify',
'matthiasmullie/path-converter',
]),
// Find and scope the Composer autoloader files.
Finder::create()
->files()
->in('vendor/composer')
->name('/.*\.php/'),
),
);