REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.15 KB
Close
//opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/symfony/console/Debug/CliRequest.php
Text
Base64
<?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 RectorPrefix202411\Symfony\Component\Console\Debug; use RectorPrefix202411\Symfony\Component\Console\Command\TraceableCommand; use RectorPrefix202411\Symfony\Component\HttpFoundation\Request; use RectorPrefix202411\Symfony\Component\HttpFoundation\Response; /** * @internal */ final class CliRequest extends Request { /** * @readonly * @var \Symfony\Component\Console\Command\TraceableCommand */ public $command; public function __construct(TraceableCommand $command) { $this->command = $command; parent::__construct(attributes: ['_controller' => \get_class($command->command), '_virtual_type' => 'command'], server: $_SERVER); } // Methods below allow to populate a profile, thus enable search and filtering public function getUri() : string { if ($this->server->has('SYMFONY_CLI_BINARY_NAME')) { $binary = $this->server->get('SYMFONY_CLI_BINARY_NAME') . ' console'; } else { $binary = $this->server->get('argv')[0]; } return $binary . ' ' . $this->command->input; } public function getMethod() : string { return $this->command->isInteractive ? 'INTERACTIVE' : 'BATCH'; } public function getResponse() : Response { return new class($this->command->exitCode) extends Response { /** * @readonly * @var int */ private $exitCode; public function __construct(int $exitCode) { $this->exitCode = $exitCode; parent::__construct(); } public function getStatusCode() : int { return $this->exitCode; } }; } public function getClientIp() : string { $application = $this->command->getApplication(); return $application->getName() . ' ' . $application->getVersion(); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 1
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
CliRequest.php
2.15 KB
lrw-r--r--
2024-11-08 13:59:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).