[BUGFIX] Bugfixes and optimisations

- When no parameter is recieved, router now returns null instead of empty
  string.
- json method in Response class now stops response after execution.
- Updated composer.json with correct autoload.
This commit is contained in:
Simon Sessingø
2015-10-25 02:34:25 +02:00
parent 2a66350883
commit ac2993f804
3 changed files with 4 additions and 6 deletions
+1 -2
View File
@@ -54,12 +54,11 @@ class Response {
/**
* Json encode array
* @param array $value
* @return self $this
*/
public function json(array $value) {
$this->header('Content-type: application/json');
echo json_encode($value);
return $this;
die();
}
/**