File: src/PatchAutoloadFunctions.php

Recommend this page to a friend!
  Classes of Till Wehowski  >  PHP Proxy Server Script  >  src/PatchAutoloadFunctions.php  >  Download  
File: src/PatchAutoloadFunctions.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Proxy Server Script
Forward HTTP requests to other servers as a proxy
Author: By
Last change:
Date: 2 months ago
Size: 617 bytes
 

Contents

Class file image Download
<?php
namespace frdl\Proxy;
/*
* Patch if using frdl/remote-psr4
*/

class PatchAutoloadFunctions
{
  public function
__construct(){
    
$l=[];
             
$l[]=!function_exists('\GuzzleHttp\Psr7\uri_for') && class_exists(\GuzzleHttp\Psr7\Functions::class) && \GuzzleHttp\Psr7\Functions::load;
        
$l[]= !function_exists('\GuzzleHttp\Promise\promise_for') && class_exists(\GuzzleHttp\Promise\Functions::class) && \GuzzleHttp\Promise\Functions::load;
        
$l[]= !function_exists('\GuzzleHttp\uri_template') && class_exists(\GuzzleHttp\Functions::class) && \GuzzleHttp\Functions::load;
     return
$l;
  }
  
}


For more information send a message to info at phpclasses dot org.