PHP Classes

File: libraries/vendor/nikic/fast-route/test/bootstrap.php

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/nikic/fast-route/test/bootstrap.php   Download  
File: libraries/vendor/nikic/fast-route/test/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 6 years ago
Size: 373 bytes
 

Contents

Class file image Download
<?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';
    }
});