Overview

Namespaces

  • None
  • Peg
    • Cli
      • Commands
    • Config
    • Custom
      • Command
        • Action
          • Generate
          • Parse
      • CommandLine
      • Config
      • Localization
      • Utilities
    • Lib
      • Definitions
        • Element
      • Generator
      • Lexers
      • Plugins
      • Signals
        • Data
          • Definitions
          • Lexers
        • Type
  • PHP

Classes

  • Command
  • ConfigTools
  • Generate
  • Init
  • Scanner
  • Test
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo
 1: <?php
 2: 
 3: namespace Peg\Cli\Commands;
 4: 
 5: use Peg\Cli\Commands\Command;
 6: use Symfony\Component\Console\Input\InputArgument;
 7: use Symfony\Component\Console\Input\InputInterface;
 8: use Symfony\Component\Console\Input\InputOption;
 9: use Symfony\Component\Console\Output\OutputInterface;
10: 
11: class Init extends Command
12: {
13:     protected function configure()
14:     {
15:         $this->setName('init');
16:         $this->setDescription('init');
17:         
18:         parent::configure();
19:     }
20: 
21:     protected function execute(InputInterface $input, OutputInterface $output)
22:     {
23:         $output->writeln("Someday, when I grow up, I'm gonna start things!");
24:     }
25: }
26: 
PEG Api API documentation generated by ApiGen 2.8.0