Пример #1
0
 /**
  * @param mixed $value
  *
  * @return string
  */
 public function serialize($value)
 {
     return \json_encode(parent::serialize($value), JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
 }
Пример #2
0
 /**
  * @param mixed $value
  *
  * @return string
  */
 public function serialize($value)
 {
     return $this->flatten(parent::serialize($value));
 }