I dub thy version 1.0.0
This commit is contained in:
@@ -141,6 +141,7 @@ class Html extends Formatter {
|
||||
}
|
||||
|
||||
echo static::template(array(
|
||||
'version' => $info['version'],
|
||||
'title' => $context['title'],
|
||||
'content' => $panel,
|
||||
));
|
||||
|
||||
@@ -23,13 +23,14 @@ class Logger {
|
||||
return '(n-a)';
|
||||
}
|
||||
|
||||
public static function start() {
|
||||
public static function start($data = array()) {
|
||||
self::$start = microtime(true);
|
||||
|
||||
self::$data = array(
|
||||
self::$data = $data + array(
|
||||
'ip' => self::ip(),
|
||||
'date' => date('d.m.Y H:i:s'),
|
||||
'func' => '(none)',
|
||||
'version' => '(none)',
|
||||
'error' => ''
|
||||
);
|
||||
}
|
||||
|
||||
@@ -10,13 +10,19 @@ abstract class WebService
|
||||
private $func = null;
|
||||
private $status = 200;
|
||||
|
||||
private $version = null;
|
||||
|
||||
public function __construct($version) {
|
||||
$this->version = $version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Treat the current request and output the result. This is the only
|
||||
* method that should be called on the webservice directly !
|
||||
*/
|
||||
public function Run()
|
||||
{
|
||||
Logger::start();
|
||||
Logger::start(array('version' => $this->version));
|
||||
|
||||
$renderer = new Renderer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user