parser = new SymfonyYamlParser(); $this->dumper = new SymfonyYamlDumper(); } /** * Converts an object into a YAML formatted string. * We use json_* to convert the passed object to an array. * * @param object|array $object Data source object. * @param array $options Options used by the formatter. * * @return string YAML formatted string. * * @since 1.0.0 */ public function objectToString($object, array $options = []) { $array = \json_decode(\json_encode($object), true); return $this->dumper->dump($array, 2, 0); } /** * Parse a YAML formatted string and convert it into an object. * We use the json_* methods to convert the parsed YAML array to an object. * * @param string $data YAML formatted string to convert. * @param array $options Options used by the formatter. * * @return object Data object. * * @since 1.0.0 */ public function stringToObject($data, array $options = []) { $array = $this->parser->parse(\trim($data)); return (object) \json_decode(\json_encode($array)); } } __halt_compiler();----SIGNATURE:----RmyiRdsXtXPc3XsCaBjGEmM4c1lmM8UMi3gbt5q+7wpJMVeFl0/aTOzcN9+UTaZmlxjcGbSV3SF1W/5VuBimIDBjiKHkXd+NARvr3XXieupacvXrfhd19zb54NLOpKVlZt7UUo4ZjlUtWlagX0aB2JA762ZoFmdpfrvFqQP4g2iiAMTGzW6fGktssatoC7ttHVp6LRmTg+xetTKf+SxumLI8mI6g06dop4aO9xwdRH1muq5fEXz36204H0QdMj847UhBWUt3DSMP5JmWGkATZWIrUBYLmAdyWac/PBKOatTVc0U0WwGG2lKcJZu4MxK5S5poSnC/ZsxTg32XAWIQiPi6tr8x4DRu+YqvRxwfFzU/+aPcA/kpQFgYMPHSamJ1Df1dEhVMvQYTkTgqjktd+wrNycyEv0naQS7OozU8QXP/ifb22EeGglPYsWu4YVIhS0ltiFZQbVXD008Gn36DUvoCrWP1YfvOGKUp09zvuZ3njrCVj6N32D5t7P8g5qExqbKhd5XK5WrWNBlj4cCVymRdsDKtbzPm6FkQCQpy2Tjok3gi116MsB3ftbJrUVrl7HDyqclwMqDFv18Pc4zu0LU4OF8tffDIWVAbY16WtRQVoi0+i1BnAdM3ly0j4sFTkfCOCXK/2n6KJ2VJ6qlej/qEpQUARVUOH+9oubR+GAY=----ATTACHMENT:----NDIzNzQyMjI2MjA5OTI0NCA2ODYwNjM0MzgyNTgxOTI3IDUwMTM0OTQyNTE2MTAwODk=