diff options
Diffstat (limited to 'poc/poc02-compiling-cake/src/php-weave/json_serialiser.class.php')
-rw-r--r-- | poc/poc02-compiling-cake/src/php-weave/json_serialiser.class.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/poc/poc02-compiling-cake/src/php-weave/json_serialiser.class.php b/poc/poc02-compiling-cake/src/php-weave/json_serialiser.class.php deleted file mode 100644 index 40f55ce..0000000 --- a/poc/poc02-compiling-cake/src/php-weave/json_serialiser.class.php +++ /dev/null @@ -1,12 +0,0 @@ -<?php -require_once '../vendor/nikic/php-parser/lib/bootstrap.php'; - -class PHPParser_JSONSerialiser implements PHPParser_Serializer,PHPParser_Unserializer { - public function serialize(array $nodes) { - //FIXME : gros problème, ça n'encode pas les objects !!! - return json_encode($nodes); - } - public function unserialize($string) { - return json_decode($string); - } -} |