X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/symfony/var-dumper/Caster
home
/
prisjneg
/
public_html
/
vendor
/
symfony
/
var-dumper
/
Caster
/
📁
..
📄
AmqpCaster.php
(6.72 KB)
📄
ArgsStub.php
(2.24 KB)
📄
Caster.php
(6.73 KB)
📄
ClassStub.php
(3.76 KB)
📄
ConstStub.php
(740 B)
📄
CutArrayStub.php
(696 B)
📄
CutStub.php
(1.89 KB)
📄
DOMCaster.php
(9.03 KB)
📄
DateCaster.php
(4.94 KB)
📄
DoctrineCaster.php
(1.74 KB)
📄
DsCaster.php
(1.55 KB)
📄
DsPairStub.php
(625 B)
📄
EnumStub.php
(637 B)
📄
ExceptionCaster.php
(16.38 KB)
📄
FFICaster.php
(5.53 KB)
📄
FiberCaster.php
(1.07 KB)
📄
FrameStub.php
(740 B)
📄
GmpCaster.php
(749 B)
📄
ImagineCaster.php
(949 B)
📄
ImgStub.php
(637 B)
📄
IntlCaster.php
(8.9 KB)
📄
LinkStub.php
(3.29 KB)
📄
MemcachedCaster.php
(2.27 KB)
📄
MysqliCaster.php
(691 B)
📄
PdoCaster.php
(3.54 KB)
📄
PgSqlCaster.php
(5.46 KB)
📄
ProxyManagerCaster.php
(758 B)
📄
RdKafkaCaster.php
(4.97 KB)
📄
RedisCaster.php
(5.43 KB)
📄
ReflectionCaster.php
(15.35 KB)
📄
ResourceCaster.php
(3.07 KB)
📄
ScalarStub.php
(554 B)
📄
SplCaster.php
(8.13 KB)
📄
StubCaster.php
(2.47 KB)
📄
SymfonyCaster.php
(3.69 KB)
📄
TraceStub.php
(964 B)
📄
UninitializedStub.php
(615 B)
📄
UuidCaster.php
(668 B)
📄
XmlReaderCaster.php
(3.33 KB)
📄
XmlResourceCaster.php
(2.52 KB)
Editing: SymfonyCaster.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\VarDumper\Caster; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Uid\Ulid; use Symfony\Component\Uid\Uuid; use Symfony\Component\VarDumper\Cloner\Stub; use Symfony\Component\VarExporter\Internal\LazyObjectState; /** * @final */ class SymfonyCaster { private const REQUEST_GETTERS = [ 'pathInfo' => 'getPathInfo', 'requestUri' => 'getRequestUri', 'baseUrl' => 'getBaseUrl', 'basePath' => 'getBasePath', 'method' => 'getMethod', 'format' => 'getRequestFormat', ]; /** * @return array */ public static function castRequest(Request $request, array $a, Stub $stub, bool $isNested) { $clone = null; foreach (self::REQUEST_GETTERS as $prop => $getter) { $key = Caster::PREFIX_PROTECTED.$prop; if (\array_key_exists($key, $a) && null === $a[$key]) { $clone ??= clone $request; $a[Caster::PREFIX_VIRTUAL.$prop] = $clone->{$getter}(); } } return $a; } /** * @return array */ public static function castHttpClient($client, array $a, Stub $stub, bool $isNested) { $multiKey = sprintf("\0%s\0multi", $client::class); if (isset($a[$multiKey])) { $a[$multiKey] = new CutStub($a[$multiKey]); } return $a; } /** * @return array */ public static function castHttpClientResponse($response, array $a, Stub $stub, bool $isNested) { $stub->cut += \count($a); $a = []; foreach ($response->getInfo() as $k => $v) { $a[Caster::PREFIX_VIRTUAL.$k] = $v; } return $a; } /** * @return array */ public static function castLazyObjectState($state, array $a, Stub $stub, bool $isNested) { if (!$isNested) { return $a; } $stub->cut += \count($a) - 1; $instance = $a['realInstance'] ?? null; $a = ['status' => new ConstStub(match ($a['status']) { LazyObjectState::STATUS_INITIALIZED_FULL => 'INITIALIZED_FULL', LazyObjectState::STATUS_INITIALIZED_PARTIAL => 'INITIALIZED_PARTIAL', LazyObjectState::STATUS_UNINITIALIZED_FULL => 'UNINITIALIZED_FULL', LazyObjectState::STATUS_UNINITIALIZED_PARTIAL => 'UNINITIALIZED_PARTIAL', }, $a['status'])]; if ($instance) { $a['realInstance'] = $instance; --$stub->cut; } return $a; } /** * @return array */ public static function castUuid(Uuid $uuid, array $a, Stub $stub, bool $isNested) { $a[Caster::PREFIX_VIRTUAL.'toBase58'] = $uuid->toBase58(); $a[Caster::PREFIX_VIRTUAL.'toBase32'] = $uuid->toBase32(); // symfony/uid >= 5.3 if (method_exists($uuid, 'getDateTime')) { $a[Caster::PREFIX_VIRTUAL.'time'] = $uuid->getDateTime()->format('Y-m-d H:i:s.u \U\T\C'); } return $a; } /** * @return array */ public static function castUlid(Ulid $ulid, array $a, Stub $stub, bool $isNested) { $a[Caster::PREFIX_VIRTUAL.'toBase58'] = $ulid->toBase58(); $a[Caster::PREFIX_VIRTUAL.'toRfc4122'] = $ulid->toRfc4122(); // symfony/uid >= 5.3 if (method_exists($ulid, 'getDateTime')) { $a[Caster::PREFIX_VIRTUAL.'time'] = $ulid->getDateTime()->format('Y-m-d H:i:s.v \U\T\C'); } return $a; } }
Upload File
Create Folder