forked from authbucket/oauth2-symfony-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sami.php
30 lines (26 loc) · 781 Bytes
/
.sami.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
<?php
use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$iterator = Finder::create()
->files()
->name('*.php')
->exclude('Resources')
->exclude('Tests')
->exclude('app')
->exclude('build')
->exclude('vendor')
->in($dir = '.');
$versions = GitVersionCollection::create($dir)
->add('develop', 'develop branch')
->add('master', 'master branch')
->addFromTags('*');
return new Sami($iterator, array(
'theme' => 'enhanced',
'versions' => $versions,
'title' => 'AuthBucket\Bundle\OAuth2Bundle API',
'build_dir' => __DIR__ . '/build/sami/%version%',
'cache_dir' => __DIR__ . '/build/cache/sami/%version%',
'include_parent_data' => false,
'default_opened_level' => 3,
));