-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsami_config.php
39 lines (32 loc) · 1.01 KB
/
sami_config.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
<?php
use Sami\Sami;
use Sami\Parser\Filter\TrueFilter;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
ini_set('memory_limit', -1);
$iterator = Finder::create()
->files()
->exclude('Vendor')
->exclude('tests')
->in($dir = __DIR__.'/src')
;
$versions = GitVersionCollection::create($dir)
->addFromTags('*')
->add('master','master')
;
$sami= new Sami($iterator,array(
'theme' => 'default',
'title' => 'Laravel Composer Security API',
'versions' => $versions,
'build_dir' => 'Y:/Public/laravel-packages/www/doc/padosoft/laravel-composer-security/build/%version%',
'cache_dir' => 'Y:/Public/laravel-packages/www/doc/padosoft/laravel-composer-security/cache/%version%',
'default_opened_level' => 1,
));
/**
* Include this section if you want sami to document
* private and protected functions/properties
*/
$sami['filter'] = function () {
return new TrueFilter();
};
return $sami;