TYPO3\Surf\Task\Generic\CreateDirectoriesTask

class CreateDirectoriesTask

Creates directories for a release.

It takes the following options:

  • baseDirectory (optional) - Can be set as base path.
  • directories - An array of directories to create. The paths can be relative to the baseDirectory, if set.
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskGenericCreateDirectoriesTask’, [

‘baseDirectory’ => ‘/var/www/outerspace’, ‘directories’ => [

‘uploads/spaceship’, ‘uploads/freighter’, ‘/tmp/outerspace/lonely_planet’

]

]

);

property shell

protected ShellCommandService

execute(Node $node, Application $application, Deployment $deployment, $options = [])

Execute this task

Parameters:
simulate(Node $node, Application $application, Deployment $deployment, $options = [])

Simulate this task

Parameters:
resolveOptions(OptionsResolver $resolver)
Parameters:
  • $resolver (OptionsResolver) –
setShellCommandService(ShellCommandService $shellCommandService)
Parameters:
rollback(Node $node, Application $application, Deployment $deployment, $options = [])

Rollback this task

Parameters:
configureOptions($options = [])
Parameters:
  • $options (array) –
Returns:

array