%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/codeception/base/src/Codeception/Lib/Connector/ |
Upload File : |
<?php namespace Codeception\Lib\Connector; class Symfony extends \Symfony\Component\HttpKernel\Client { /** * @var boolean */ private $rebootable = true; /** * @var boolean */ private $hasPerformedRequest = false; /** * @var \Symfony\Component\DependencyInjection\ContainerInterface */ private $container = null; /** * @var array */ public $persistentServices = []; /** * Constructor. * * @param \Symfony\Component\HttpKernel\Kernel $kernel A booted HttpKernel instance * @param array $services An injected services * @param boolean $rebootable */ public function __construct(\Symfony\Component\HttpKernel\Kernel $kernel, array $services = [], $rebootable = true) { parent::__construct($kernel); $this->followRedirects(true); $this->rebootable = (boolean)$rebootable; $this->persistentServices = $services; $this->rebootKernel(); } /** * @param \Symfony\Component\HttpFoundation\Request $request */ protected function doRequest($request) { if ($this->rebootable) { if ($this->hasPerformedRequest) { $this->rebootKernel(); } else { $this->hasPerformedRequest = true; } } return parent::doRequest($request); } /** * Reboot kernel * * Services from the list of persistent services * are updated from service container before kernel shutdown * and injected into newly initialized container after kernel boot. */ public function rebootKernel() { if ($this->container) { foreach ($this->persistentServices as $serviceName => $service) { if ($this->container->has($serviceName)) { $this->persistentServices[$serviceName] = $this->container->get($serviceName); } } } $this->kernel->shutdown(); $this->kernel->boot(); $this->container = $this->kernel->getContainer(); foreach ($this->persistentServices as $serviceName => $service) { $this->container->set($serviceName, $service); } if ($this->container->has('profiler')) { $this->container->get('profiler')->enable(); } } }