diff --git a/flextype/dependencies.php b/flextype/dependencies.php index 87832ea0..98be1149 100644 --- a/flextype/dependencies.php +++ b/flextype/dependencies.php @@ -55,7 +55,12 @@ $flextype['emitter'] = function ($container) { * Add slugify service to Flextype container */ $flextype['slugify'] = function ($container) { - return new Slugify(['separator' => '-', 'lowercase' => true, 'trim' => true]); + return new Slugify(['separator' => $container['registry']->get('settings.slugify.separator'), + 'lowercase' => $container['registry']->get('settings.slugify.lowercase'), + 'trim' => $container['registry']->get('settings.slugify.trim'), + 'regexp' => $container['registry']->get('settings.slugify.regexp'), + 'lowercase_after_regexp' => $container['registry']->get('settings.slugify.lowercase_after_regexp'), + 'strip_tags' => $container['registry']->get('settings.slugify.strip_tags'),]); }; /**