summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php')
-rw-r--r--poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php b/poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php
new file mode 100644
index 0000000..c987d0e
--- /dev/null
+++ b/poc/poc02-compiling-cake/src/php-weave/php_serializer.class.php
@@ -0,0 +1,12 @@
+<?php
+require_once '../vendor/nikic/php-parser/lib/bootstrap.php';
+
+class PHPParser_PHPSerializer implements PHPParser_Serializer,PHPParser_Unserializer {
+ public function serialize(array $nodes) {
+ //Utilise les fonctions internes de PHP
+ return serialize($nodes);
+ }
+ public function unserialize($string) {
+ return unserialize($string);
+ }
+}