コード例 #1
0
 /**
  * (non-PHPdoc)
  *
  * @see \Symfony\Component\Console\Command\Command::configure()
  */
 protected function configure()
 {
     parent::configure();
     $outputTypeDefault = "html";
     $outputFileDefault = sprintf("%s/%s/%s/daily.%s", $_SERVER['HOME'], 'Documents/AP/Pivotal', date('Y-m-d'), $outputTypeDefault);
     $this->addOption("outputType", "ou", InputOption::VALUE_OPTIONAL, "Report Output type: html|txt.", $outputTypeDefault);
     $this->addOption("outputFile", "of", InputOption::VALUE_OPTIONAL, "Report Output file.", $outputFileDefault);
     $this->getDefinition()->getOption('fileSuffix')->setDefault("context-state.xml");
     $this->getDefinition()->getOption('ignoreDotFiles')->setDefault(FALSE);
     /*
      * $this->getDefinition()
      * ->getOption( 'date' )
      * ->setDefault( "since yesterday" );
      */
     $srcDefault = array(sprintf("%s/domains/.metadata", $_SERVER['HOME']));
     $this->getDefinition()->getArgument('src')->setDefault($srcDefault);
 }
コード例 #2
0
 /**
  * (non-PHPdoc)
  *
  * @see \Symfony\Component\Console\Command\Command::configure()
  */
 protected function configure()
 {
     parent::configure();
 }