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

bootstrap.php « test « fast-route « nikic « vendor « server - github.com/nextcloud/lookup-server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 27e6d4c8fbdc163fc8fa351a08945db0ca5a40ff (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

require_once __DIR__ . '/../src/functions.php';

spl_autoload_register(function($class) {
    if (strpos($class, 'FastRoute\\') === 0) {
        $dir = strcasecmp(substr($class, -4), 'Test') ? 'src/' : 'test/';
        $name = substr($class, strlen('FastRoute'));
        require __DIR__ . '/../' . $dir . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
    }
});