Mini Shell

Direktori : /usr/local/jetapps/var/lib/3rdparty/guzzlehttp/psr7/
Upload File :
Current File : //usr/local/jetapps/var/lib/3rdparty/guzzlehttp/psr7/autoload.php

<?php

spl_autoload_register(function($className) {

	$parts = explode('\\', $className);
	if(!isset($parts[0]) || $parts[0] != 'GuzzleHttp' || !isset($parts[1]) || $parts[1] != 'Psr7') return;

	$parts = array_splice($parts,2);

	$path = dirname(__FILE__) . '/src/'.implode('/' , $parts) . ".php";
	if(file_exists($path)) require_once $path;

});

Zerion Mini Shell 1.0