Changeset 5269
- Timestamp:
- 09/25/07 14:27:12 (2 years ago)
- Files:
-
- trunk/lib/task/project/sfUpgradeTo11Task.class.php (modified) (1 diff)
- trunk/lib/task/project/upgrade1.1/sfUpgrade.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/task/project/sfUpgradeTo11Task.class.php
r4936 r5269 45 45 foreach ($this->getUpgradeClasses() as $class) 46 46 { 47 $upgrader = new $class($this );47 $upgrader = new $class($this->dispatcher, $this->formatter); 48 48 $upgrader->upgrade(); 49 49 } trunk/lib/task/project/upgrade1.1/sfUpgrade.class.php
r5118 r5269 17 17 * @version SVN: $Id$ 18 18 */ 19 abstract class sfUpgrade 19 abstract class sfUpgrade extends sfTask 20 20 { 21 21 protected … … 23 23 24 24 /** 25 * Constructs a new sfUpgrade instance.26 *27 * @param sfTask A sfTask instance28 */29 public function __construct(sfTask $task)30 {31 $this->task = $task;32 }33 34 /**35 25 * Upgrades the current project from 1.0 to 1.1. 36 26 */ 37 27 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 } 38 33 39 34 /**

