Skip to content

Commit

Permalink
[CLEANUP] Remove deprecated tasks followup (TYPO3#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi authored Feb 19, 2020
1 parent a313c3b commit deca74a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ trim_trailing_whitespace = true
[*.php]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

[*.rst]
indent_style = space
Expand Down
3 changes: 1 addition & 2 deletions Documentation/Examples/TYPO3/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ If you would like to deploy a TYPO3 Website a good starting point is to use TYPO
->afterStage('switch', \TYPO3\Surf\Task\Php\WebOpcacheResetExecuteTask::class, $application)
// CreatePackageStatesTask is done by post-autoload-dump script and can be removed
// https://github.com/TYPO3/TYPO3.CMS.BaseDistribution/blob/9.x/composer.json#L38
->removeTask(\TYPO3\Surf\Task\TYPO3\CMS\CreatePackageStatesTask::class, $application)
->removeTask(\TYPO3\Surf\Task\TYPO3\CMS\CopyConfigurationTask::class, $application);
->removeTask(\TYPO3\Surf\Task\TYPO3\CMS\CreatePackageStatesTask::class, $application);
}
);
10 changes: 1 addition & 9 deletions src/Application/TYPO3/CMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use TYPO3\Surf\Domain\Model\Workflow;
use TYPO3\Surf\Task\DumpDatabaseTask;
use TYPO3\Surf\Task\RsyncFoldersTask;
use TYPO3\Surf\Task\TYPO3\CMS\CopyConfigurationTask;
use TYPO3\Surf\Task\TYPO3\CMS\CreatePackageStatesTask;
use TYPO3\Surf\Task\TYPO3\CMS\FlushCachesTask;
use TYPO3\Surf\Task\TYPO3\CMS\SetUpExtensionsTask;
Expand Down Expand Up @@ -85,14 +84,7 @@ public function registerTasks(Workflow $workflow, Deployment $deployment)
}
$workflow
->afterStage('transfer', CreatePackageStatesTask::class, $this)
->afterStage(
'update',
[
SymlinkDataTask::class,
CopyConfigurationTask::class
],
$this
)
->afterStage('update', SymlinkDataTask::class, $this)
->afterStage('switch', FlushCachesTask::class, $this)
->addTask(SetUpExtensionsTask::class, 'migrate', $this);
}
Expand Down
1 change: 0 additions & 1 deletion tests/Unit/Command/DescribeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,6 @@ public function describeTypo3Cms()
update:
after:
<success>TYPO3\Surf\Task\TYPO3\CMS\SymlinkDataTask</success> (for application TYPO3 CMS)
<success>TYPO3\Surf\Task\TYPO3\CMS\CopyConfigurationTask</success> (for application TYPO3 CMS)
migrate:
tasks:
<success>TYPO3\Surf\Task\TYPO3\CMS\SetUpExtensionsTask</success> (for application TYPO3 CMS)
Expand Down

0 comments on commit deca74a

Please sign in to comment.