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:
Franz Liedke 2020-02-26 22:13:11 +01:00
parent 0666448ef5
commit 0fba2c0c0a
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

23
src/Util/Str.php Normal file
View 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);
}
}