File: autoload.php.in

package info (click to toggle)
php-finder-facade 1.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 124 kB
  • ctags: 48
  • sloc: php: 177; xml: 44; makefile: 22
file content (27 lines) | stat: -rw-r--r-- 497 bytes parent folder | download | duplicates (2)
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
<?php

require_once 'Symfony/Component/Finder/autoload.php';
require_once 'TheSeer/fDOMDocument/autoload.php';

// @codingStandardsIgnoreFile
// @codeCoverageIgnoreStart
spl_autoload_register(
  function($class) {
    static $classes = NULL;

    if ($classes === NULL) {
      $classes = array(
        ___CLASSLIST___
      );
    }

    $cn = strtolower($class);

    if (isset($classes[$cn])) {
      require ___BASEDIR___$classes[$cn];
    }
  },
  true,
  false
);
// @codeCoverageIgnoreEnd