PHP Classes

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

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   libraries/vendor/nikic/fast-route/src/bootstrap.php   Download  
File: libraries/vendor/nikic/fast-route/src/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: 293 bytes
 

Contents

Class file image Download
<?php

namespace FastRoute;

require
__DIR__ . '/functions.php';

spl_autoload_register(function($class) {
    if (
strpos($class, 'FastRoute\\') === 0) {
       
$name = substr($class, strlen('FastRoute'));
        require
__DIR__ . strtr($name, '\\', DIRECTORY_SEPARATOR) . '.php';
    }
});