class YamlOutputAdapter implements OutputAdapterInterface
8
{
9
/**
10
* @var string
11
*/
12
private $parameterKey;
13
14
public function __construct($parameterKey)
15
{
16
17
$this->parameterKey = $parameterKey;
18
}
19
20
public static function getName()
21
{
22
return 'yaml';
23
}
24
25
public function process($parameters, $fileName, $env)
26
{
27
file_put_contents($fileName, sprintf("# This file is auto-generated during the build process of '%s' environment at %s\n", $env, date(DATE_ATOM)) . Yaml::dump(array($this->parameterKey => $parameters)), 99);