Fix the alias generator. Do not use -.

This commit is contained in:
David Molineus
2016-10-05 14:48:57 +02:00
parent 5a41b2b5d8
commit 8e89cc3616
2 changed files with 2 additions and 40 deletions

View File

@@ -135,8 +135,7 @@ $container['leaflet.alias-generator'] = $container->share(
$filters = [
new ExistingAliasFilter(),
new SlugifyFilter($fields),
new SuffixFilter(),
new UnderscoreFilter(false)
new SuffixFilter(false),
];
$validator = new UniqueDatabaseValueValidator(
@@ -145,7 +144,7 @@ $container['leaflet.alias-generator'] = $container->share(
$aliasField
);
return new FilterBasedAliasGenerator($filters, $validator, $dataContainerName, $aliasField);
return new FilterBasedAliasGenerator($filters, $validator, $dataContainerName, $aliasField, '_');
};
}
);