summaryrefslogtreecommitdiff
path: root/poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php')
-rw-r--r--poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php b/poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php
index f9eb513..1bc7bce 100644
--- a/poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php
+++ b/poc/poc02-compiling-cake/src/php-weave/abstract_weaver.class.php
@@ -1,6 +1,6 @@
<?php
require_once '../vendor/nikic/php-parser/lib/bootstrap.php';
-require_once 'json_serialiser.class.php';
+require_once 'php_serializer.class.php';
function dbg($indent, $text) {
for($i=0;$i<$indent;$i++) echo ".";
@@ -20,7 +20,7 @@ abstract class AbstractWeaver {
$this->parser = new PHPParser_Parser(new PHPParser_Lexer);
$this->nodeDumper = new PHPParser_NodeDumper;
$this->prettyPrinter = new PHPParser_PrettyPrinter_Zend;
- $this->serializer = new PHPParser_JSONSerialiser;
+ $this->serializer = new PHPParser_PHPSerializer;
$this->unserializer = &$this->serializer;
$this->ast_dump_before_walk="";
$this->ast_dump_after_walk="";
@@ -218,7 +218,7 @@ abstract class AbstractWeaver {
}
public function unserializeAST($src_filepath) {
- return $this->serializer->unserialize($src_filepath);
+ return $this->serializer->unserialize(file_get_contents($src_filepath));
}
public function findAllFiles($basepath, $regexMatch, $regexPrune, $already_found=array(), $level=0) {