Task/File/YamlWriterTask.php
public function execute(ProcessState $state)
    {
        $options = $this->getOptions($state);
        file_put_contents($options['file_path'], Yaml::dump($state->getInput(), $options['inline']));
        $state->setOutput($options['file_path']);
    }
public function execute(ProcessState $state)
    {
        $options = $this->getOptions($state);
        file_put_contents($options['file_path'], Yaml::dump($state->getInput(), $options['inline']));
        $state->setOutput($options['file_path']);
    }
@param ProcessState $state

@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface
@throws \Symfony\Component\Filesystem\Exception\IOException