Seditio Source
Root |
./othercms/xenForo 2.2.8/src/vendor/braintree/braintree_php/lib/autoload.php
<?php

spl_autoload_register
(function ($className) {
    if (
strpos($className, 'Braintree') !== 0) {
        return;
    }

   
$fileName = dirname(__DIR__) . '/lib/';

    if (
$lastNsPos = strripos($className, '\\')) {
       
$namespace = substr($className, 0, $lastNsPos);
       
$className = substr($className, $lastNsPos + 1);
       
$fileName  .= str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
    }

   
$fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';

    if (
is_file($fileName)) {
        require_once
$fileName;
    }
});