PHP Classes

File: test/bootstrap.php

Recommend this page to a friend!
  Classes of Jorge Castro   Cloud King PHP SOAP Server   test/bootstrap.php   Download  
File: test/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Cloud King PHP SOAP Server
Implement an SOAP server API with handler classes
Author: By
Last change:
Date: 3 years ago
Size: 849 bytes
 

Contents

Class file image Download
<?php
/*
 * Require the composer autoloader or create PSR-4 autoloaders for eftec\bladeone\ and eftec\tests\ found in composer.json.
 */

if (file_exists(__DIR__ . '/../vendor/autoload.php')) {
 
    require_once
__DIR__ . '/../vendor/autoload.php';
} else {
    function
create_autoloader($prefix, $base_dir) {

        return function (
$class) use ($prefix, $base_dir) {
            if (
strncmp($prefix, $class, strlen($prefix)) !== 0) {
                return;
            }

           
$file = $base_dir . str_replace('\\', '/', substr($class, strlen($prefix))) . '.php';

            if (
file_exists($file)) {
                require
$file;
            }
        };
    }

   
spl_autoload_register(create_autoloader("eftec\\bladeone\\", __DIR__ . '/../lib/'));
   
spl_autoload_register(create_autoloader("eftec\\tests\\", __DIR__ . '/'));
}