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