!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php54/usr/share/pear/test/HttpKernel/Symfony/Component/HttpKernel/Tests/HttpCache/   drwxr-xr-x
Free 293.9 GB of 429.69 GB (68.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\HttpKernel\Tests\HttpCache;

use 
Symfony\Component\HttpKernel\HttpKernel;
use 
Symfony\Component\HttpKernel\HttpKernelInterface;
use 
Symfony\Component\HttpFoundation\Request;
use 
Symfony\Component\HttpFoundation\Response;
use 
Symfony\Component\HttpKernel\Controller\ControllerResolverInterface;
use 
Symfony\Component\EventDispatcher\EventDispatcher;

class 
TestMultipleHttpKernel extends HttpKernel implements ControllerResolverInterface
{
    protected 
$bodies = array();
    protected 
$statuses = array();
    protected 
$headers = array();
    protected 
$call false;
    protected 
$backendRequest;

    public function 
__construct($responses)
    {
        foreach (
$responses as $response) {
            
$this->bodies[]   = $response['body'];
            
$this->statuses[] = $response['status'];
            
$this->headers[]  = $response['headers'];
        }

        
parent::__construct(new EventDispatcher(), $this);
    }

    public function 
getBackendRequest()
    {
        return 
$this->backendRequest;
    }

    public function 
handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch false)
    {
        
$this->backendRequest $request;

        return 
parent::handle($request$type$catch);
    }

    public function 
getController(Request $request)
    {
        return array(
$this'callController');
    }

    public function 
getArguments(Request $request$controller)
    {
        return array(
$request);
    }

    public function 
callController(Request $request)
    {
        
$this->called true;

        
$response = new Response(array_shift($this->bodies), array_shift($this->statuses), array_shift($this->headers));

        return 
$response;
    }

    public function 
hasBeenCalled()
    {
        return 
$this->called;
    }

    public function 
reset()
    {
        
$this->call false;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0042 ]--