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.
43 lines
950 B
43 lines
950 B
<?php |
|
|
|
namespace Illuminate\Queue; |
|
|
|
use Opis\Closure\SerializableClosure as OpisSerializableClosure; |
|
|
|
/** |
|
* @deprecated This class will be removed in Laravel 9. |
|
*/ |
|
class SerializableClosure extends OpisSerializableClosure |
|
{ |
|
use SerializesAndRestoresModelIdentifiers; |
|
|
|
/** |
|
* Transform the use variables before serialization. |
|
* |
|
* @param array $data |
|
* @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 |
|
* @return array |
|
*/ |
|
protected function resolveUseVariables($data) |
|
{ |
|
foreach ($data as $key => $value) { |
|
$data[$key] = $this->getRestoredPropertyValue($value); |
|
} |
|
|
|
return $data; |
|
} |
|
}
|
|
|