plexorganizrnginxsonarrradarrdashboardcouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdallemby
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
954 B
40 lines
954 B
<?php
|
|
|
|
namespace Illuminate\Queue;
|
|
|
|
use Opis\Closure\SerializableClosure as OpisSerializableClosure;
|
|
|
|
class SerializableClosure extends OpisSerializableClosure
|
|
{
|
|
use SerializesAndRestoresModelIdentifiers;
|
|
|
|
/**
|
|
* Transform the use variables before serialization.
|
|
*
|
|
* @param array $data The Closure's use variables
|
|
* @return array
|
|
*/
|
|
protected function transformUseVariables($data)
|
|
{
|
|
foreach ($data as $key => $value) {
|
|
$data[$key] = $this->getSerializedPropertyValue($value);
|
|
}
|
|
|
|
return $data;
|
|
}
|
|
|
|
/**
|
|
* Resolve the use variables after unserialization.
|
|
*
|
|
* @param array $data The Closure's transformed use variables
|
|
* @return array
|
|
*/
|
|
protected function resolveUseVariables($data)
|
|
{
|
|
foreach ($data as $key => $value) {
|
|
$data[$key] = $this->getRestoredPropertyValue($value);
|
|
}
|
|
|
|
return $data;
|
|
}
|
|
}
|
|
|