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 31 32 33 34 35 36 37
|
#!/usr/bin/env php
<?php
spl_autoload_register(
function ($class)
{
static $classes = NULL;
if ($classes === NULL) {
$classes = array(
___CLASSLIST___
);
}
$class = strtolower($class);
if (isset($classes[$class])) {
require 'phar://phpdox.phar/' . $classes[$class];
}
}
);
Phar::mapPhar('phpdox.phar');
define('PHPDOX_PHAR', 'phpdox.phar');
require 'phar://phpdox.phar/phpdox/runtimecheck.php';
$factory = new TheSeer\phpDox\Factory(
new \TheSeer\phpDox\FileInfo('phar://' . PHPDOX_PHAR),
new \TheSeer\phpDox\Version('___VERSION___')
);
$factory->getCLI()->run(
new TheSeer\phpDox\CLIOptions($_SERVER['argv'])
);
exit(0);
__HALT_COMPILER();
|