Exemplo n.º 1
0
 /**
  * Register local composer install task for packageMethod "git" after stage "package"
  *
  * @param \TYPO3\Surf\Domain\Model\Workflow $workflow
  * @param string $packageMethod
  * @return void
  */
 protected function registerTasksForPackageMethod(Workflow $workflow, $packageMethod)
 {
     parent::registerTasksForPackageMethod($workflow, $packageMethod);
     $workflow->defineTask('TYPO3\\Surf\\DefinedTask\\Composer\\LocalInstallTask', 'TYPO3\\Surf\\Task\\Composer\\InstallTask', array('nodeName' => 'localhost', 'useApplicationWorkspace' => true));
     if ($packageMethod === 'git') {
         $workflow->afterStage('package', 'TYPO3\\Surf\\DefinedTask\\Composer\\LocalInstallTask', $this);
     }
 }
Exemplo n.º 2
0
 /**
  * @param Workflow $workflow
  * @param string $packageMethod
  */
 protected function registerTasksForPackageMethod(Workflow $workflow, $packageMethod)
 {
     parent::registerTasksForPackageMethod($workflow, $packageMethod);
     switch ($packageMethod) {
         case 'git':
             $workflow->afterTask('TYPO3\\Surf\\DefinedTask\\Composer\\LocalInstallTask', 'TYPO3\\Surf\\Task\\TYPO3\\CMS\\CreatePackageStatesTask', $this);
             break;
     }
 }
Exemplo n.º 3
0
 /**
  * @param Workflow $workflow
  * @param string $packageMethod
  */
 protected function registerTasksForPackageMethod(Workflow $workflow, $packageMethod)
 {
     parent::registerTasksForPackageMethod($workflow, $packageMethod);
     switch ($packageMethod) {
         case 'git':
             $workflow->defineTask('typo3.surf:composer:localInstall', 'typo3.surf:composer:install', array('nodeName' => 'localhost', 'useApplicationWorkspace' => TRUE));
             $workflow->afterStage('package', 'typo3.surf:composer:localInstall', $this)->afterTask('typo3.surf:composer:localInstall', 'typo3.surf.cms:typo3:cms:createPackageStates', $this);
             break;
     }
 }