Welcome to mirror list, hosted at ThFree Co, Russian Federation.

punic.php « punic « punic - github.com/nextcloud/3rdparty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: efa32556e8869b25968517eb7852bbc8873e6aa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

spl_autoload_register(
    function ($class) {
        if (strpos($class, 'Punic\\') !== 0) {
            return;
        }
        $file = __DIR__.DIRECTORY_SEPARATOR.'code'.str_replace('\\', DIRECTORY_SEPARATOR, substr($class, strlen('Punic'))).'.php';
        if (is_file($file)) {
            require_once $file;
        }
    }
);