Skip to content

Commit

Permalink
Changed serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
lexxorlov committed Jun 15, 2018
1 parent 6bf413a commit bf3a2c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private function inWork()
*/
private function push(string $handle, array $data): \Symfony\Component\Process\Process
{
$cmd = HtmlPurifier::process(sprintf('php yii socketio/process %s %s', escapeshellarg($handle), escapeshellarg(serialize($data))));
$cmd = HtmlPurifier::process(sprintf('php yii socketio/process %s %s', escapeshellarg($handle), escapeshellarg(json_encode($data))));

if (is_null($this->yiiAlias)) {
if (file_exists(Yii::getAlias('@app/yii'))) {
Expand Down
2 changes: 1 addition & 1 deletion commands/CommandTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ trait CommandTrait
*/
public function actionProcess($handler, $data)
{
Broadcast::process($handler, @unserialize($data) ?? []);
Broadcast::process($handler, @json_decode($data, true) ?? []);
}

public function nodejs()
Expand Down

0 comments on commit bf3a2c9

Please sign in to comment.