|
3
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the FOSUserBundle package. |
|
|
5 |
* |
|
|
6 |
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/> |
|
|
7 |
* |
|
|
8 |
* For the full copyright and license information, please view the LICENSE |
|
|
9 |
* file that was distributed with this source code. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace FOS\UserBundle\Util; |
|
|
13 |
|
|
|
14 |
class Canonicalizer implements CanonicalizerInterface |
|
|
15 |
{ |
|
|
16 |
public function canonicalize($string) |
|
|
17 |
{ |
|
|
18 |
return mb_convert_case($string, MB_CASE_LOWER, mb_detect_encoding($string)); |
|
|
19 |
} |
|
|
20 |
} |