コード例 #1
0
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'openpne';
        $this->name = 'send-daily-news';
        $this->briefDescription = '';
        $this->detailedDescription = <<<EOF
The [openpne:send-birthday-mail|INFO] task does things.
Call it with:

  [php symfony openpne:send-birthday-mail|INFO]
EOF;
    }
コード例 #2
0
    protected function configure()
    {
        parent::configure();
        $this->namespace = 'openpne';
        $this->name = 'send-daily-news';
        $this->briefDescription = '';
        $this->detailedDescription = <<<EOF
The [openpne:send-birthday-mail|INFO] task does things.
Call it with:

  [php symfony openpne:send-birthday-mail|INFO]
EOF;
        $this->addOptions(array(new sfCommandOption('app', null, sfCommandOption::PARAMETER_OPTIONAL, 'send to pc or mobile', null)));
    }
コード例 #3
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('log-file', 'l', sfCommandOption::PARAMETER_OPTIONAL, 'The path of log file', null);
 }