[String] Remove the @experimental status
This commit is contained in:
parent
e87f86b550
commit
3d15f91723
@ -26,8 +26,6 @@ use Symfony\Component\String\Exception\RuntimeException;
|
|||||||
* @author Hugo Hamon <hugohamon@neuf.fr>
|
* @author Hugo Hamon <hugohamon@neuf.fr>
|
||||||
*
|
*
|
||||||
* @throws ExceptionInterface
|
* @throws ExceptionInterface
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
abstract class AbstractString implements \JsonSerializable
|
abstract class AbstractString implements \JsonSerializable
|
||||||
{
|
{
|
||||||
|
@ -25,8 +25,6 @@ use Symfony\Component\String\Exception\RuntimeException;
|
|||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
*
|
*
|
||||||
* @throws ExceptionInterface
|
* @throws ExceptionInterface
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
abstract class AbstractUnicodeString extends AbstractString
|
abstract class AbstractUnicodeString extends AbstractString
|
||||||
{
|
{
|
||||||
|
@ -22,8 +22,6 @@ use Symfony\Component\String\Exception\RuntimeException;
|
|||||||
* @author Hugo Hamon <hugohamon@neuf.fr>
|
* @author Hugo Hamon <hugohamon@neuf.fr>
|
||||||
*
|
*
|
||||||
* @throws ExceptionInterface
|
* @throws ExceptionInterface
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
class ByteString extends AbstractString
|
class ByteString extends AbstractString
|
||||||
{
|
{
|
||||||
|
@ -7,6 +7,7 @@ CHANGELOG
|
|||||||
* added the `AbstractString::reverse()` method
|
* added the `AbstractString::reverse()` method
|
||||||
* made `AbstractString::width()` follow POSIX.1-2001
|
* made `AbstractString::width()` follow POSIX.1-2001
|
||||||
* added `LazyString` which provides memoizing stringable objects
|
* added `LazyString` which provides memoizing stringable objects
|
||||||
|
* The component is not marked as `@experimental` anymore.
|
||||||
|
|
||||||
5.0.0
|
5.0.0
|
||||||
-----
|
-----
|
||||||
|
@ -21,8 +21,6 @@ use Symfony\Component\String\Exception\InvalidArgumentException;
|
|||||||
* @author Hugo Hamon <hugohamon@neuf.fr>
|
* @author Hugo Hamon <hugohamon@neuf.fr>
|
||||||
*
|
*
|
||||||
* @throws ExceptionInterface
|
* @throws ExceptionInterface
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
class CodePointString extends AbstractUnicodeString
|
class CodePointString extends AbstractUnicodeString
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\String\Exception;
|
namespace Symfony\Component\String\Exception;
|
||||||
|
|
||||||
/**
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
|
||||||
interface ExceptionInterface extends \Throwable
|
interface ExceptionInterface extends \Throwable
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\String\Exception;
|
namespace Symfony\Component\String\Exception;
|
||||||
|
|
||||||
/**
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
|
||||||
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
|
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -11,9 +11,6 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\String\Exception;
|
namespace Symfony\Component\String\Exception;
|
||||||
|
|
||||||
/**
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
|
||||||
class RuntimeException extends \RuntimeException implements ExceptionInterface
|
class RuntimeException extends \RuntimeException implements ExceptionInterface
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -4,11 +4,6 @@ String Component
|
|||||||
The String component provides an object-oriented API to strings and deals
|
The String component provides an object-oriented API to strings and deals
|
||||||
with bytes, UTF-8 code points and grapheme clusters in a unified way.
|
with bytes, UTF-8 code points and grapheme clusters in a unified way.
|
||||||
|
|
||||||
**This component is experimental**.
|
|
||||||
[Experimental features](https://symfony.com/doc/current/contributing/code/experimental.html)
|
|
||||||
are not covered by Symfony's
|
|
||||||
[Backward Compatibility Promise](https://symfony.com/doc/current/contributing/code/bc.html).
|
|
||||||
|
|
||||||
Resources
|
Resources
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
@ -11,17 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\String;
|
namespace Symfony\Component\String;
|
||||||
|
|
||||||
/**
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
|
||||||
function u(string $string = ''): UnicodeString
|
function u(string $string = ''): UnicodeString
|
||||||
{
|
{
|
||||||
return new UnicodeString($string);
|
return new UnicodeString($string);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
|
||||||
function b(string $string = ''): ByteString
|
function b(string $string = ''): ByteString
|
||||||
{
|
{
|
||||||
return new ByteString($string);
|
return new ByteString($string);
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Contracts\Translation\LocaleAwareInterface;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Titouan Galopin <galopintitouan@gmail.com>
|
* @author Titouan Galopin <galopintitouan@gmail.com>
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
|
class AsciiSlugger implements SluggerInterface, LocaleAwareInterface
|
||||||
{
|
{
|
||||||
|
@ -17,8 +17,6 @@ use Symfony\Component\String\AbstractUnicodeString;
|
|||||||
* Creates a URL-friendly slug from a given string.
|
* Creates a URL-friendly slug from a given string.
|
||||||
*
|
*
|
||||||
* @author Titouan Galopin <galopintitouan@gmail.com>
|
* @author Titouan Galopin <galopintitouan@gmail.com>
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
interface SluggerInterface
|
interface SluggerInterface
|
||||||
{
|
{
|
||||||
|
@ -29,8 +29,6 @@ use Symfony\Component\String\Exception\InvalidArgumentException;
|
|||||||
* @author Hugo Hamon <hugohamon@neuf.fr>
|
* @author Hugo Hamon <hugohamon@neuf.fr>
|
||||||
*
|
*
|
||||||
* @throws ExceptionInterface
|
* @throws ExceptionInterface
|
||||||
*
|
|
||||||
* @experimental in 5.0
|
|
||||||
*/
|
*/
|
||||||
class UnicodeString extends AbstractUnicodeString
|
class UnicodeString extends AbstractUnicodeString
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user