TYPO3\Surf\Task\VarnishBanTask

class VarnishBanTask

Task for banning in Varnish, should be used for Varnish 3.x.

It takes the following options:

  • secretFile (optional) - Path to the secret file, defaults to “/etc/varnish/secret”.
  • banUrl (optional) - URL (pattern) to ban, defaults to “.*”.
  • varnishadm (optional) - Path to the varnishadm utility, defaults to “/usr/bin/varnishadm”.
Example:
$workflow
->setTaskOptions(‘TYPO3SurfTaskVarnishBanTask’, [
‘secretFile’ => ‘/etc/varnish/secret’, ‘banUrl’ => ‘.*’, ‘varnishadm’ => ‘/usr/bin/varnishadm’

]

);

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