PHP Classes

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

Recommend this page to a friend!
  Classes of uche   Farm Price   vendor/nikic/fast-route/test/bootstrap.php   Download  
File: vendor/nikic/fast-route/test/bootstrap.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Farm Price
API to get the prices from agriculture markets
Author: By
Last change:
Date: 2 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';
    }
});