Development

Changeset 5269

You must first sign up to be able to contribute.

Changeset 5269

Show
Ignore:
Timestamp:
09/25/07 14:27:12 (2 years ago)
Author:
fabien
Message:

fixed upgrade task

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/task/project/sfUpgradeTo11Task.class.php

    r4936 r5269  
    4545    foreach ($this->getUpgradeClasses() as $class) 
    4646    { 
    47       $upgrader = new $class($this); 
     47      $upgrader = new $class($this->dispatcher, $this->formatter); 
    4848      $upgrader->upgrade(); 
    4949    } 
  • trunk/lib/task/project/upgrade1.1/sfUpgrade.class.php

    r5118 r5269  
    1717 * @version    SVN: $Id$ 
    1818 */ 
    19 abstract class sfUpgrade 
     19abstract class sfUpgrade extends sfTask 
    2020{ 
    2121  protected 
     
    2323 
    2424  /** 
    25    * Constructs a new sfUpgrade instance. 
    26    * 
    27    * @param sfTask A sfTask instance 
    28    */ 
    29   public function __construct(sfTask $task) 
    30   { 
    31     $this->task = $task; 
    32   } 
    33  
    34   /** 
    3525   * Upgrades the current project from 1.0 to 1.1. 
    3626   */ 
    3727  abstract public function upgrade(); 
     28 
     29  public function execute($arguments = array(), $options = array()) 
     30  { 
     31    throw new sfException('You can\'t execute this task.'); 
     32  } 
    3833 
    3934  /** 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.