and when I run bin/console debug:config CocurSlugifyBundle it looks like it get the information:
➜ bin/console debug:config CocurSlugifyBundle
Current configuration for "CocurSlugifyBundle"
==============================================
cocur_slugify:
lowercase: true
separator: '-'
rulesets:
- german
I then add Slugify to a Service class through the interface:
private SlugifyInterface $slugify;
/**
* @param SlugifyInterface $slugify
*/
public function __construct(SlugifyInterface $slugify)
{
$this->slugify = $slugify;
}
And then I was hoping that a $this->slugify->slugify('Erläuterungsbroschüre'); would create erlaeuterungsbroschuere- instead I get erla-uterungsbroschu-re - which looks to me like it doesn't use the right ruleset.
I'm trying to get the ruleset working for a project running on Symfony 4.4.
The bundle is activated in the
bundles.php
and mycocur_slugify.yaml
looks like thisand when I run
bin/console debug:config CocurSlugifyBundle
it looks like it get the information:I then add Slugify to a Service class through the interface:
And then I was hoping that a
$this->slugify->slugify('Erläuterungsbroschüre');
would createerlaeuterungsbroschuere
- instead I geterla-uterungsbroschu-re
- which looks to me like it doesn't use the right ruleset.What could be the problem here?