public function __construct($options = array())
{
// Define a default changelog name
if (!array_key_exists('location', $options)) {
$options['location'] = 'CHANGELOG';
}
// The changelog format is related to the version-generator
$config = Context::getParam('config');
preg_match('/([^\\\\]+)Generator/', $config['version-generator']['class'], $match);
$format = $match[1];
// Create the changelog manager
$this->changelogManager = new ChangelogManager(Context::getParam('project-root') . '/' . $options['location'], $format);
}