Skip to content

1.8.0

Compare
Choose a tag to compare
@dereuromark dereuromark released this 27 Nov 22:44
· 553 commits to master since this release
0833d3c

Improvements

Allow Slugged behavior to use custom slugger via 'mode' config. Use any callable here.
It internally still uses the deprecated Inflector::slug(), so you can also easily replace it now with the Text::slug() method:

use Cake\Utility\Text;
...
$this->addBehavior('Tools.Slugged', ['mode' => [Text::class, 'slug']]);