관리-도구
편집 파일: SerializableClosure.php
<?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; } }