PHP Classes

File: vendor/autoload.php

Recommend this page to a friend!
  Classes of Manuel Lemos   PHP OAuth2 Server Library   vendor/autoload.php   Download  
File: vendor/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP OAuth2 Server Library
Implements an API provider using OAuth 2 protocol
Author: By
Last change: Update of vendor/autoload.php
Date: 11 months ago
Size: 531 bytes
 

Contents

Class file image Download
<?php

/*
 * autoload.php
 *
 * @(#) $Id: $
 */

$__classmap = array();

require(
__DIR__.DIRECTORY_SEPARATOR.'classmaps.php');

spl_autoload_register(function($class)
{
    global
$__classmap;

    if(IsSet(
$__classmap[$class]))
    {
       
$class_file = $__classmap[$class];
        if(
GetType($class_file) === 'array')
        {
            if(IsSet(
$class_file['include']))
            {
                foreach(
$class_file['include'] as $include)
                {
                    require_once
$include;
                }
            }
            include
$class_file['path'];
        }
        else
            include
$class_file;
    }
},
false, true);

?>