mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-14 09:24:07 +00:00
33 lines
902 B
PHP
33 lines
902 B
PHP
<?php
|
|
|
|
// Prevent e.g. 'Notice: Constant MATH_BIGINTEGER_MONTGOMERY already defined'.
|
|
class MyArrayStore extends Sami\Store\ArrayStore
|
|
{
|
|
public function removeClass(Sami\Project $project, $name)
|
|
{
|
|
unset($this->classes[$name]);
|
|
}
|
|
}
|
|
|
|
$iterator = Symfony\Component\Finder\Finder::create()
|
|
->files()
|
|
->name('*.php')
|
|
->in(__DIR__ . '/../phpseclib/')
|
|
;
|
|
|
|
$versions = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')
|
|
->add('1.0')
|
|
->add('2.0')
|
|
->add('master')
|
|
;
|
|
|
|
return new Sami\Sami($iterator, array(
|
|
'theme' => 'enhanced',
|
|
'versions' => $versions,
|
|
'title' => 'phpseclib API Documentation',
|
|
'build_dir' => __DIR__.'/api/output/%version%',
|
|
'cache_dir' => __DIR__.'/api/cache/%version%',
|
|
'default_opened_level' => 2,
|
|
'store' => new MyArrayStore,
|
|
));
|