Development

Changeset 24018

You must first sign up to be able to contribute.

Changeset 24018

Show
Ignore:
Timestamp:
11/16/09 16:13:01 (5 years ago)
Author:
Kris.Wallsmith
Message:

[1.3] fixed command.* events not firing from generate:app task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.3/lib/task/generator/sfGenerateAppTask.class.php

    r23203 r24018  
    2424   * @see sfTask 
    2525   */ 
    26   protected function doRun(sfCommandManager $commandManager, $options) 
    27   { 
    28     $this->process($commandManager, $options); 
    29  
    30     $this->checkProjectExists(); 
    31  
    32     return $this->execute($commandManager->getArgumentValues(), $commandManager->getOptionValues()); 
    33   } 
    34  
    35   /** 
    36    * @see sfTask 
    37    */ 
    3826  protected function configure() 
    3927  { 
    4028    $this->addArguments(array( 
    41       new sfCommandArgument('application', sfCommandArgument::REQUIRED, 'The application name'), 
     29      new sfCommandArgument('app', sfCommandArgument::REQUIRED, 'The application name'), 
    4230    )); 
    4331 
     
    9482  protected function execute($arguments = array(), $options = array()) 
    9583  { 
    96     $app = $arguments['application']; 
     84    $app = $arguments['app']; 
    9785 
    9886    // Validate the application name