yoti-8.x-2.5/sdk/boot.php

sdk/boot.php
<?php
/**
 * If we aren't using the composer vendor auto loader then run this script to get all
 * required files
 */

// PHP Secure files
require_once __DIR__ . '/phpseclib/bootstrap.php';

// Autoload Yoti classes and other dependencies
spl_autoload_register(function($className) {
    if (strpos($className, 'Google\Protobuf') !== false || strpos($className, 'GPBMetadata') !== false) {
        $className = 'protobuflib\\' .  $className;
    }
    $file = __DIR__ . '/' . str_replace('\\', DIRECTORY_SEPARATOR, $className).'.php';
    if (file_exists($file)) {
        require $file;
        return true;
    }
    return false;
});

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc