[VarDumper] Made all casters final
This commit is contained in:
parent
b43f25555f
commit
3044a91838
|
@ -9,6 +9,7 @@ CHANGELOG
|
||||||
* added `ImagineCaster` and infrastructure to dump images
|
* added `ImagineCaster` and infrastructure to dump images
|
||||||
* added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data
|
* added the stamps of a message after it is dispatched in `TraceableMessageBus` and `MessengerDataCollector` collected data
|
||||||
* added `UuidCaster`
|
* added `UuidCaster`
|
||||||
|
* made all casters final
|
||||||
|
|
||||||
4.3.0
|
4.3.0
|
||||||
-----
|
-----
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts Amqp related classes to array representation.
|
* Casts Amqp related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class AmqpCaster
|
class AmqpCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts DOM related classes to array representation.
|
* Casts DOM related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class DOMCaster
|
class DOMCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts DateTimeInterface related classes to array representation.
|
* Casts DateTimeInterface related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Dany Maillard <danymaillard93b@gmail.com>
|
* @author Dany Maillard <danymaillard93b@gmail.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class DateCaster
|
class DateCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts Doctrine related classes to array representation.
|
* Casts Doctrine related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class DoctrineCaster
|
class DoctrineCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts Ds extension classes to array representation.
|
* Casts Ds extension classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Jáchym Toušek <enumag@gmail.com>
|
* @author Jáchym Toušek <enumag@gmail.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class DsCaster
|
class DsCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,6 +19,8 @@ use Symfony\Component\VarDumper\Exception\ThrowingCasterException;
|
||||||
* Casts common Exception classes to array representation.
|
* Casts common Exception classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class ExceptionCaster
|
class ExceptionCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,6 +18,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
*
|
*
|
||||||
* @author Hamza Amrouche <hamza.simperfit@gmail.com>
|
* @author Hamza Amrouche <hamza.simperfit@gmail.com>
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class GmpCaster
|
class GmpCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,7 +17,7 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
/**
|
/**
|
||||||
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
||||||
*/
|
*/
|
||||||
class ImagineCaster
|
final class ImagineCaster
|
||||||
{
|
{
|
||||||
public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array
|
public static function castImage(ImageInterface $c, array $a, Stub $stub, bool $isNested): array
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
/**
|
/**
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
|
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class IntlCaster
|
class IntlCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
|
* @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class MemcachedCaster
|
class MemcachedCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts PDO related classes to array representation.
|
* Casts PDO related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class PdoCaster
|
class PdoCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts pqsql resources to array representation.
|
* Casts pqsql resources to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class PgSqlCaster
|
class PgSqlCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class ProxyManagerCaster
|
class ProxyManagerCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts Redis class from ext-redis to array representation.
|
* Casts Redis class from ext-redis to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class RedisCaster
|
class RedisCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts Reflector related classes to array representation.
|
* Casts Reflector related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class ReflectionCaster
|
class ReflectionCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts common resource types to array representation.
|
* Casts common resource types to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class ResourceCaster
|
class ResourceCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts SPL related classes to array representation.
|
* Casts SPL related classes to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class SplCaster
|
class SplCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,6 +14,9 @@ namespace Symfony\Component\VarDumper\Caster;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\VarDumper\Cloner\Stub;
|
use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @final since Symfony 4.4
|
||||||
|
*/
|
||||||
class SymfonyCaster
|
class SymfonyCaster
|
||||||
{
|
{
|
||||||
private static $requestGetters = [
|
private static $requestGetters = [
|
||||||
|
|
|
@ -17,7 +17,7 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
/**
|
/**
|
||||||
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
* @author Grégoire Pineau <lyrixx@lyrixx.info>
|
||||||
*/
|
*/
|
||||||
class UuidCaster
|
final class UuidCaster
|
||||||
{
|
{
|
||||||
public static function castRamseyUuid(UuidInterface $c, array $a, Stub $stub, bool $isNested): array
|
public static function castRamseyUuid(UuidInterface $c, array $a, Stub $stub, bool $isNested): array
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts XmlReader class to array representation.
|
* Casts XmlReader class to array representation.
|
||||||
*
|
*
|
||||||
* @author Baptiste Clavié <clavie.b@gmail.com>
|
* @author Baptiste Clavié <clavie.b@gmail.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class XmlReaderCaster
|
class XmlReaderCaster
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,8 @@ use Symfony\Component\VarDumper\Cloner\Stub;
|
||||||
* Casts XML resources to array representation.
|
* Casts XML resources to array representation.
|
||||||
*
|
*
|
||||||
* @author Nicolas Grekas <p@tchwork.com>
|
* @author Nicolas Grekas <p@tchwork.com>
|
||||||
|
*
|
||||||
|
* @final since Symfony 4.4
|
||||||
*/
|
*/
|
||||||
class XmlResourceCaster
|
class XmlResourceCaster
|
||||||
{
|
{
|
||||||
|
|
Reference in New Issue