for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Incenteev\ParameterHandler\FileHandler;
use Symfony\Component\Yaml\Inline;
use Symfony\Component\Yaml\Yaml;
class YamlHandler
{
/**
* {@inheritdoc}
*/
public function load($filePath)
return Yaml::parse(file_get_contents($filePath));
}
public function save($filePath, $data)
return file_put_contents($filePath, "# This file is auto-generated during the composer install\n" . Yaml::dump($data, 99));
public function parseInline($value)
return Inline::parse($value);
public function dumpInline($value)
return Inline::dump($value);