Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Serialize content
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jan 9, 2014
1 parent b0dc0f9 commit 6e78192
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SlmQueue/Job/AbstractJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function jsonSerialize()
{
$data = array(
'class' => get_called_class(),
'content' => $this->getContent(),
'content' => serialize($this->getContent()),
'metadata' => $this->getMetadata(),
);

Expand Down
2 changes: 1 addition & 1 deletion src/SlmQueue/Queue/AbstractQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function createJob($className, $content = null, array $metadata = array()
{
/** @var $job \SlmQueue\Job\JobInterface */
$job = $this->jobPluginManager->get($className);
$job->setContent($content)
$job->setContent(unserialize($content))
->setMetadata($metadata);

return $job;
Expand Down

0 comments on commit 6e78192

Please sign in to comment.