Changeset 7400
- Timestamp:
- 02/08/08 08:57:06 (10 months ago)
- Files:
-
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllLoadTask.class.php (modified) (1 diff)
- branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllTask.class.php (modified) (1 diff)
- branches/1.1/lib/task/generator/sfGenerateAppTask.class.php (modified) (1 diff)
- branches/1.1/lib/task/generator/sfGenerateProjectTask.class.php (modified) (1 diff)
- branches/1.1/lib/task/project/sfProjectEnableTask.class.php (modified) (1 diff)
- branches/1.1/lib/task/project/sfUpgradeTo11Task.class.php (modified) (1 diff)
- branches/1.1/lib/task/sfBaseTask.class.php (modified) (1 diff)
- branches/1.1/lib/task/sfCommandApplicationTask.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllLoadTask.class.php
r7247 r7400 56 56 { 57 57 $buildAll = new sfPropelBuildAllTask($this->dispatcher, $this->formatter); 58 $buildAll->setCommandApplication($this->commandApplication); 58 59 $buildAll->run(); 59 60 60 61 $loadData = new sfPropelLoadDataTask($this->dispatcher, $this->formatter); 62 $loadData->setCommandApplication($this->commandApplication); 61 63 $loadData->run(array('application' => $arguments['application'])); 62 64 } branches/1.1/lib/plugins/sfPropelPlugin/lib/task/sfPropelBuildAllTask.class.php
r7247 r7400 53 53 { 54 54 $buildModel = new sfPropelBuildModelTask($this->dispatcher, $this->formatter); 55 $buildModel->setCommandApplication($this->commandApplication); 55 56 $buildModel->run(); 56 57 57 58 $buildSql = new sfPropelBuildSqlTask($this->dispatcher, $this->formatter); 59 $buildSql->setCommandApplication($this->commandApplication); 58 60 $buildSql->run(); 59 61 60 62 $buildForms = new sfPropelBuildFormsTask($this->dispatcher, $this->formatter); 63 $buildForms->setCommandApplication($this->commandApplication); 61 64 $buildForms->run(); 62 65 63 66 $insertSql = new sfPropelInsertSqlTask($this->dispatcher, $this->formatter); 67 $insertSql->setCommandApplication($this->commandApplication); 64 68 $insertSql->run(); 65 69 } branches/1.1/lib/task/generator/sfGenerateAppTask.class.php
r7333 r7400 105 105 106 106 $fixPerms = new sfProjectPermissionsTask($this->dispatcher, $this->formatter); 107 $fixPerms->setCommandApplication($this->commandApplication); 107 108 $fixPerms->run(); 108 109 branches/1.1/lib/task/generator/sfGenerateProjectTask.class.php
r7322 r7400 82 82 83 83 $fixPerms = new sfProjectPermissionsTask($this->dispatcher, $this->formatter); 84 $fixPerms->setCommandApplication($this->commandApplication); 84 85 $fixPerms->run(); 85 86 } branches/1.1/lib/task/project/sfProjectEnableTask.class.php
r7397 r7400 58 58 59 59 $clearCache = new sfCacheClearTask($this->dispatcher, $this->formatter); 60 $clearCache->setCommandApplication($this->commandApplication); 60 61 $clearCache->run(); 61 62 branches/1.1/lib/task/project/sfUpgradeTo11Task.class.php
r6931 r7400 46 46 { 47 47 $upgrader = new $class($this->dispatcher, $this->formatter); 48 $upgrader->setCommandApplication($this->commandApplication); 48 49 $upgrader->upgrade(); 49 50 } branches/1.1/lib/task/sfBaseTask.class.php
r7308 r7400 49 49 if (!isset($this->filesystem)) 50 50 { 51 $this->filesystem = new sfFilesystem($this->dispatcher, $this->formatter); 51 if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) 52 { 53 $this->filesystem = new sfFilesystem($this->dispatcher, $this->formatter); 54 } 55 else 56 { 57 $this->filesystem = new sfFilesystem(); 58 } 52 59 } 53 60 branches/1.1/lib/task/sfCommandApplicationTask.class.php
r7308 r7400 22 22 $commandApplication = null; 23 23 24 public function setCommandApplication(sfCommandApplication $commandApplication )24 public function setCommandApplication(sfCommandApplication $commandApplication = null) 25 25 { 26 26 $this->commandApplication = $commandApplication; 27 27 } 28 29 /** 30 * @see sfTask 31 */ 32 protected function log($messages) 33 { 34 if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) 35 { 36 parent::log($messages); 37 } 38 } 39 40 /** 41 * @see sfTask 42 */ 43 protected function logSection($section, $message, $size = null) 44 { 45 if (is_null($this->commandApplication) || $this->commandApplication->isVerbose()) 46 { 47 parent::logSection($section, $message, $size); 48 } 49 } 28 50 }