Skip to content

Commit 1334b36

Browse files
committed
Some minor fixes
1 parent 82f238c commit 1334b36

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ URL-friendly string `such-as-this`. Slugifiers are also known as "urlizers".
1212

1313
This package does not contain a slugifier implementation, it provides a
1414
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
1616
third-party slugifiers to the `SlugifierInterface`.
1717

1818
## Requirements
@@ -49,9 +49,11 @@ class FooSubscriber
4949

5050
You can then inject either a slugifier which already implements the CMF
5151
``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:
5557

5658
```php
5759
$slugifier = new CallbackSlugifier('Ferrandini\Urlizer::urlize');
@@ -68,8 +70,7 @@ See also:
6870

6971
## FIG Proposal
7072

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)
7374
but unfortunately the proposal did not get enough interest. We would still be
7475
happy to contribute this to a PSR should the interest come up and deprecate
7576
this package in favor of the PSR one.

0 commit comments

Comments
 (0)