From 43916041af1fba6205e3b0ca4126a00c60e35de3 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Tue, 25 Jul 2017 20:32:18 +0200 Subject: [PATCH] return log as array --- lib/phpdoc_md.php | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/lib/phpdoc_md.php b/lib/phpdoc_md.php index 1e20e58..0f73e0d 100644 --- a/lib/phpdoc_md.php +++ b/lib/phpdoc_md.php @@ -1,34 +1,29 @@ SERVERPATH())) { mkdir($outpath->SERVERPATH(), 0777, true);} - $named = array( - 'lt' => '%c', - 'index' => 'ApiIndex.md', - ); $parser = new \PHPDocMD\Parser($inpath->SERVERPATH()); - new INFO("Parsing structure.xml"); + $result[] = 'Parsing structure.xml'; $classDefinitions = $parser->run(); - $templateDir = dirname(__FILE__) . '/phpdoc_md/templates/'; - $generator = new \PHPDocMD\Generator( $classDefinitions, $outpath->SERVERPATH(), - $templateDir, - $named['lt'], - $named['index'] + dirname(__FILE__) . '/phpdoc_md/templates/', + '%c', + 'ApiIndex.md' ); - new INFO("Generating pages"); + $result[] = 'Generating pages'; $generator->run(); - new INFO("Complete"); - return \SYSTEM\LOG\JsonResult::ok(); + $result[] = 'Complete'; + return $result; } } \ No newline at end of file