| Name | Size | Mode | Actions |
|---|---|---|---|
| DefaultMarshaller.php | 3446 | 0644 | editdlrm |
| DeflateMarshaller.php | 1237 | 0644 | editdlrm |
| MarshallerInterface.php | 1081 | 0644 | editdlrm |
| SodiumMarshaller.php | 2397 | 0644 | editdlrm |
| TagAwareMarshaller.php | 3107 | 0644 | editdlrm |
/home/techb158/immovalet.com/vendor/symfony/cache/Marshaller/DeflateMarshaller.php (1237B)
*/ class DeflateMarshaller implements MarshallerInterface { private $marshaller; public function __construct(MarshallerInterface $marshaller) { if (!\function_exists('gzdeflate')) { throw new CacheException('The "zlib" PHP extension is not loaded.'); } $this->marshaller = $marshaller; } /** * {@inheritdoc} */ public function marshall(array $values, ?array &$failed): array { return array_map('gzdeflate', $this->marshaller->marshall($values, $failed)); } /** * {@inheritdoc} */ public function unmarshall(string $value) { if (false !== $inflatedValue = @gzinflate($value)) { $value = $inflatedValue; } return $this->marshaller->unmarshall($value); } }