Skip to content

Instantly share code, notes, and snippets.

@cbergau cbergau/console
Last active Dec 20, 2017

Embed
What would you like to do?
<?php
// a:62:{s:15:"ALLUSERSPROFILE";s:14:"C:\ProgramData";s:16:"ANDROID_NDK_PATH";s:56:"C:\Users\Christian\Documents\Android\ndk\android-ndk-r8d";s:7:"APPDATA";s:34:"C:\Users\Christian\AppData\Roaming";s:18:"CommonProgramFiles";s:35:"C:\Program Files (x86)\Common Files";s:23:"CommonProgramFiles(x86)";s:35:"C:\Program Files (x86)\Common Files";s:18:"CommonProgramW6432";s:29:"C:\Program Files\Common Files";s:12:"COMPUTERNAME";s:12:"CHRISTIAN-PC";s:7:"ComSpec";s:27:"C:\WINDOWS\system32\cmd.exe";s:27:"DOCKER_TOOLBOX_INSTALL_PATH";s:31:"C:\Program Files\Docker Toolbox";s:30:"FPS_BROWSER_APP_PROFILE_STRING";s:17:"Internet Explorer";s:31:"FPS_BROWSER_USER_PROFILE_STRING";s:7:"Default";s:16:"FP_NO_HOST_CHECK";s:2:"NO";s:12:"GTK_BASEPATH";s:37:"C:\Program Files (x86)\GtkSharp\2.12\";s:4:"HOME";s:18:"C:\Users\Christian";s:9:"HOMEDRIVE";s:2:"C:";s:8:"HOMEPATH";s:16:"\Users\Christian";s:9:"JAVA_HOME";s:33:"C:\Program Files\Java\jdk1.7.0_45";s:8:"JRE_HOME";s:33:"C:\Program Files\Java\jdk1.7.0_45";s:12:"LOCALAPPDATA";s:32:"C:\Users\Christian\AppData\Local";s:11:"LOGONSERVER";s:14:"\\CHRISTIAN-PC";s:20:"NUMBER_OF_PROCESSORS";s:1:"8";s:8:"OneDrive";s:27:"C:\Users\Christian\OneDrive";s:2:"OS";s:10:"Windows_NT";s:4:"Path";s:1856:"C:\ActiveTcl\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\ImageMagick-6.8.5-Q16;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\xampp_1.8.3\php;C:\Program Files (x86)\Windows Live\Shared;D:\Programme;C:\Program Files (x86)\Java\jre7\bin;C:\ProgramData\Composer\bin;C:\Program Files\TortoiseGit\bin;D:\apache-ant-1.9.2\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\nodejs\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Git\cmd;C:\Users\Christian\AppData\Local\Microsoft\WindowsApps;C:\Users\Christian\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin;C:\xampp\php;C:\Users\Christian\AppData\Roaming\npm;C:\gitflow;C:\Program Files\Sloppy;;C:\Program Files\Docker Toolbox";s:7:"PATHEXT";s:53:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC";s:22:"PROCESSOR_ARCHITECTURE";s:3:"x86";s:22:"PROCESSOR_ARCHITEW6432";s:5:"AMD64";s:20:"PROCESSOR_IDENTIFIER";s:51:"Intel64 Family 6 Model 158 Stepping 9, GenuineIntel";s:15:"PROCESSOR_LEVEL";s:1:"6";s:18:"PROCESSOR_REVISION";s:4:"9e09";s:11:"ProgramData";s:14:"C:\ProgramData";s:12:"ProgramFiles";s:22:"C:\Program Files (x86)";s:17:"ProgramFiles(x86)";s:22:"C:\Program Files (x86)";s:12:"ProgramW6432";s:16:"C:\Program Files";s:12:"PSModulePath";s:87:";C:\Users\Christian\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform\PowerShell";s:6:"PUBLIC";s:15:"C:\Users\Public";s:11:"SESSIONNAME";s:7:"Console";s:15:"SLOPPY_APITOKEN";s:223:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6ImNiZXJnYXU4NkBnbWFpbC5jb20iLCJyZXZva2FibGUiOnRydWUsImlhdCI6MTQ5ODY1OTY4NiwiYXVkIjoiN0V3aWUwV3ZmNVRWTkY0QlhKNHpOR2ZPajRqRkpVckMifQ.IHDz2Tz3MnugbGwj9Mi1NcKpxuf1lQJy4cg2O00HgBE";s:11:"SystemDrive";s:2:"C:";s:10:"SystemRoot";s:10:"C:\WINDOWS";s:4:"TEMP";s:36:"C:\Users\CHRIST~1\AppData\Local\Temp";s:3:"TMP";s:36:"C:\Users\CHRIST~1\AppData\Local\Temp";s:10:"USERDOMAIN";s:12:"CHRISTIAN-PC";s:25:"USERDOMAIN_ROAMINGPROFILE";s:12:"CHRISTIAN-PC";s:8:"USERNAME";s:9:"Christian";s:11:"USERPROFILE";s:18:"C:\Users\Christian";s:21:"VBOX_MSI_INSTALL_PATH";s:35:"C:\Program Files\Oracle\VirtualBox\";s:14:"VS120COMNTOOLS";s:66:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\";s:14:"VS140COMNTOOLS";s:66:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\";s:6:"windir";s:10:"C:\WINDOWS";s:21:"windows_tracing_flags";s:1:"3";s:23:"windows_tracing_logfile";s:45:"C:\BVTBin\Tests\installpackage\csilogfile.log";s:13:"XDEBUG_CONFIG";s:12:"idekey=16715";s:8:"PHP_SELF";s:57:"C:\Users\Christian\PhpstormProjects\ConsoleTest\index.php";s:11:"SCRIPT_NAME";s:57:"C:\Users\Christian\PhpstormProjects\ConsoleTest\index.php";s:15:"SCRIPT_FILENAME";s:57:"C:\Users\Christian\PhpstormProjects\ConsoleTest\index.php";s:15:"PATH_TRANSLATED";s:57:"C:\Users\Christian\PhpstormProjects\ConsoleTest\index.php";s:13:"DOCUMENT_ROOT";s:0:"";s:18:"REQUEST_TIME_FLOAT";d:1513807572.0427279;s:12:"REQUEST_TIME";i:1513807572;s:4:"argv";a:3:{i:0;s:57:"C:\Users\Christian\PhpstormProjects\ConsoleTest\index.php";i:1;s:4:"test";i:2;s:1:"a";}s:4:"argc";i:3;}
require_once './vendor/autoload.php';
class Test extends \Symfony\Component\Console\Command\Command
{
protected function configure()
{
$this->setName('test')->addArgument('myarg', \Symfony\Component\Console\Input\InputArgument::REQUIRED);
}
protected function execute(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output)
{
var_dump($input);
}
}
$app = new \Symfony\Component\Console\Application();
$app->add(new Test());
$app->run();
@cbergau

This comment has been minimized.

Copy link
Owner Author

commented Dec 20, 2017

test a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.