mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-08-19 20:30:20 +00:00
- slim/slim: ^3.1 - symfony/expression-language: ^3.4 - fxp/composer-asset-plugin: ~1.3 - bower-asset/vue: ^2.5 - bower-asset/vue-resource: ^1.5
11 lines
374 B
PHP
11 lines
374 B
PHP
<?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';
|
|
}
|
|
});
|