mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 06:46:15 +08:00
Re-add util class and mark it as deprecated
This would be the only breaking change in beta.12. Let's stick to our backwards compatibility promise / intentions as much as possible, even if we assume the class has not been used anywhere. This BC layer will be removed again for beta.13. Refs #1975.
This commit is contained in:
parent
0666448ef5
commit
0fba2c0c0a
23
src/Util/Str.php
Normal file
23
src/Util/Str.php
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This file is part of Flarum.
|
||||||
|
*
|
||||||
|
* For detailed copyright and license information, please view the
|
||||||
|
* LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Flarum\Util;
|
||||||
|
|
||||||
|
use Illuminate\Support\Str as Laravel;
|
||||||
|
|
||||||
|
class Str
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
public static function slug($str)
|
||||||
|
{
|
||||||
|
return Laravel::slug($str);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user