Last active
December 20, 2017 22:07
-
-
Save cbergau/ce8d485e5fe49cac57f7edafd17892b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| 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(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
test a