Store sami configuration for others to use.
This commit is contained in:
parent
0312c974f5
commit
c98d1dda26
2 changed files with 17 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -12,5 +12,4 @@ _ide_helper_models.php
|
||||||
_ide_helper.php
|
_ide_helper.php
|
||||||
|
|
||||||
sami.phar
|
sami.phar
|
||||||
sami.config.php
|
/.sami
|
||||||
/sami
|
|
||||||
|
|
16
.sami.php
Normal file
16
.sami.php
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Sami\Sami;
|
||||||
|
use Symfony\Component\Finder\Finder;
|
||||||
|
|
||||||
|
$iterator = Finder::create()
|
||||||
|
->files()
|
||||||
|
->name('*.php')
|
||||||
|
->in($dir = __DIR__ . '/app');
|
||||||
|
|
||||||
|
return new Sami($iterator, array(
|
||||||
|
'title' => 'Pterodactyl',
|
||||||
|
'build_dir' => __DIR__ . '/.sami/build',
|
||||||
|
'cache_dir' => __DIR__ . '/.sami/cache',
|
||||||
|
'default_opened_level' => 2,
|
||||||
|
));
|
Loading…
Reference in a new issue