!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/   drwxr-xr-x
Free 13.65 GB of 61.93 GB (22.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     VisitorFlyweight.php (4.71 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Guzzle\Service\Command\LocationVisitor;

use 
Guzzle\Common\Exception\InvalidArgumentException;
use 
Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface;
use 
Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface;

/**
 * Flyweight factory used to instantiate request and response visitors
 */
class VisitorFlyweight
{
    
/** @var self Singleton instance of self */
    
protected static $instance;

    
/** @var array Default array of mappings of location names to classes */
    
protected static $defaultMappings = array(
        
'request.body'          => 'Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor',
        
'request.header'        => 'Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor',
        
'request.json'          => 'Guzzle\Service\Command\LocationVisitor\Request\JsonVisitor',
        
'request.postField'     => 'Guzzle\Service\Command\LocationVisitor\Request\PostFieldVisitor',
        
'request.postFile'      => 'Guzzle\Service\Command\LocationVisitor\Request\PostFileVisitor',
        
'request.query'         => 'Guzzle\Service\Command\LocationVisitor\Request\QueryVisitor',
        
'request.response_body' => 'Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor',
        
'request.responseBody'  => 'Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor',
        
'request.xml'           => 'Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor',
        
'response.body'         => 'Guzzle\Service\Command\LocationVisitor\Response\BodyVisitor',
        
'response.header'       => 'Guzzle\Service\Command\LocationVisitor\Response\HeaderVisitor',
        
'response.json'         => 'Guzzle\Service\Command\LocationVisitor\Response\JsonVisitor',
        
'response.reasonPhrase' => 'Guzzle\Service\Command\LocationVisitor\Response\ReasonPhraseVisitor',
        
'response.statusCode'   => 'Guzzle\Service\Command\LocationVisitor\Response\StatusCodeVisitor',
        
'response.xml'          => 'Guzzle\Service\Command\LocationVisitor\Response\XmlVisitor'
    
);

    
/** @var array Array of mappings of location names to classes */
    
protected $mappings;

    
/** @var array Cache of instantiated visitors */
    
protected $cache = array();

    
/**
     * @return self
     * @codeCoverageIgnore
     */
    
public static function getInstance()
    {
        if (!
self::$instance) {
            
self::$instance = new self();
        }

        return 
self::$instance;
    }

    
/**
     * @param array $mappings Array mapping request.name and response.name to location visitor classes. Leave null to
     *                        use the default values.
     */
    
public function __construct(array $mappings null)
    {
        
$this->mappings $mappings === null self::$defaultMappings $mappings;
    }

    
/**
     * Get an instance of a request visitor by location name
     *
     * @param string $visitor Visitor name
     *
     * @return RequestVisitorInterface
     */
    
public function getRequestVisitor($visitor)
    {
        return 
$this->getKey('request.' $visitor);
    }

    
/**
     * Get an instance of a response visitor by location name
     *
     * @param string $visitor Visitor name
     *
     * @return ResponseVisitorInterface
     */
    
public function getResponseVisitor($visitor)
    {
        return 
$this->getKey('response.' $visitor);
    }

    
/**
     * Add a response visitor to the factory by name
     *
     * @param string                  $name    Name of the visitor
     * @param RequestVisitorInterface $visitor Visitor to add
     *
     * @return self
     */
    
public function addRequestVisitor($nameRequestVisitorInterface $visitor)
    {
        
$this->cache['request.' $name] = $visitor;

        return 
$this;
    }

    
/**
     * Add a response visitor to the factory by name
     *
     * @param string                   $name    Name of the visitor
     * @param ResponseVisitorInterface $visitor Visitor to add
     *
     * @return self
     */
    
public function addResponseVisitor($nameResponseVisitorInterface $visitor)
    {
        
$this->cache['response.' $name] = $visitor;

        return 
$this;
    }

    
/**
     * Get a visitor by key value name
     *
     * @param string $key Key name to retrieve
     *
     * @return mixed
     * @throws InvalidArgumentException
     */
    
private function getKey($key)
    {
        if (!isset(
$this->cache[$key])) {
            if (!isset(
$this->mappings[$key])) {
                list(
$type$name) = explode('.'$key);
                throw new 
InvalidArgumentException("No {$type} visitor has been mapped for {$name}");
            }
            
$this->cache[$key] = new $this->mappings[$key];
        }

        return 
$this->cache[$key];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.4741 ]--