.sami.php 602 Bytes
Newer Older
1 2 3
<?php
/**
 * Copyright (c) by the ACP3 Developers.
4
 * See the LICENSE file at the top-level module directory for licencing details.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
 */

use Sami\Sami;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->exclude('Resources')
    ->exclude('Tests')
    ->exclude('Modules/ACP3/Filemanager/libraries/kcfinder')
    ->in($dir = __DIR__ . '/ACP3');

return new Sami($iterator, array(
    'title' => 'ACP3 CMS API',
    'build_dir' => __DIR__ . '/build/sami/docs',
    'cache_dir' => __DIR__ . '/build/sami/cache',
    'default_opened_level' => 2,
));