File: autoload.php.in

package info (click to toggle)
phpdox 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 7,672 kB
  • sloc: xml: 80,724; php: 9,167; makefile: 13
file content (37 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (3)
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();