@@ -12,7 +12,7 @@ URL-friendly string `such-as-this`. Slugifiers are also known as "urlizers".
12
12
13
13
This package does not contain a slugifier implementation, it provides a
14
14
standard interface (` SlugifierInterface ` ) for use by third party slugifiers
15
- and a ` CallbackSlugifier ` which is capable of wrapping most non-implementing
15
+ and a ` CallbackSlugifier ` that is capable of wrapping most non-implementing
16
16
third-party slugifiers to the ` SlugifierInterface ` .
17
17
18
18
## Requirements
@@ -49,9 +49,11 @@ class FooSubscriber
49
49
50
50
You can then inject either a slugifier which already implements the CMF
51
51
`` SlugifierInterface `` or you can use non-implementing libraries using the
52
- ` CallbackSlugifier ` . The
53
- [ RoutingAutoBundle] ( https://github.com/symfony-cmf/RoutingAutoBundle ) uses
54
- [ aferrandini/urlizer] ( https://github.com/aferrandini/Urlizer ) package:
52
+ ` CallbackSlugifier ` . Using non-implementing libraries is very easy, assume
53
+ you want to use the [ ` aferrandini/urlizer ` ] ( https://github.com/aferrandini/Urlizer )
54
+ package (which is also used by the [ RoutingAutoBundle] ( https://github.com/symfony-cmf/RoutingAutoBundle ) ),
55
+ you can configure the ` CallbackSlugifier ` object to call the ` Ferrandini\Urlizer::urlize() `
56
+ method:
55
57
56
58
``` php
57
59
$slugifier = new CallbackSlugifier('Ferrandini\Urlizer::urlize');
@@ -68,8 +70,7 @@ See also:
68
70
69
71
## FIG Proposal
70
72
71
- We [ proposed this to
72
- FIG] ( https://groups.google.com/forum/?fromgroups=#!topic/php-fig/J-6s9Wlyk-A )
73
+ We [ proposed this to FIG] ( https://groups.google.com/forum/?fromgroups=#!topic/php-fig/J-6s9Wlyk-A )
73
74
but unfortunately the proposal did not get enough interest. We would still be
74
75
happy to contribute this to a PSR should the interest come up and deprecate
75
76
this package in favor of the PSR one.
0 commit comments