Generating doctrine slugs manually

后端 未结 3 553
独厮守ぢ
独厮守ぢ 2021-01-20 05:27

I\'m using sluggable behavior in my Symfony2 project, but now I would like to make many slugs for one page, based on different texts (current title, old title(s), users text

3条回答
  •  灰色年华
    2021-01-20 05:58

    The Sluggable\Urlizer::urlize seems to replace ' with -. I had to use Sluggable\Urlizer::transliterate to be closer to the SluggableListener behaviour.

提交回复
热议问题