Skip to content

Commit c98d1dd

Browse files
committed
Store sami configuration for others to use.
1 parent 0312c97 commit c98d1dd

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ _ide_helper_models.php
1212
_ide_helper.php
1313

1414
sami.phar
15-
sami.config.php
16-
/sami
15+
/.sami

.sami.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
use Sami\Sami;
4+
use Symfony\Component\Finder\Finder;
5+
6+
$iterator = Finder::create()
7+
->files()
8+
->name('*.php')
9+
->in($dir = __DIR__ . '/app');
10+
11+
return new Sami($iterator, array(
12+
'title' => 'Pterodactyl',
13+
'build_dir' => __DIR__ . '/.sami/build',
14+
'cache_dir' => __DIR__ . '/.sami/cache',
15+
'default_opened_level' => 2,
16+
));

0 commit comments

Comments
 (0)