removed fallback view
This commit is contained in:
parent
b0f7c14c82
commit
259e00b0d1
1 changed files with 2 additions and 5 deletions
|
@ -77,7 +77,7 @@ class Router {
|
|||
'group' => 'Volkszaehler\Controller\AggregatorController',
|
||||
'entity' => 'Volkszaehler\Controller\EntityController',
|
||||
'data' => 'Volkszaehler\Controller\DataController',
|
||||
'capabilities' => 'Volkszaehler\Controller\CapabilitiesController'
|
||||
'capabilities' => 'Volkszaehler\Controller\CapabilitiesController'
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -102,9 +102,6 @@ class Router {
|
|||
$request = new HTTP\Request();
|
||||
$response = new HTTP\Response();
|
||||
|
||||
// early default format
|
||||
$this->view = new View\JSON($request, $response);
|
||||
|
||||
// initialize entity manager
|
||||
$this->em = self::createEntityManager();
|
||||
|
||||
|
@ -140,7 +137,7 @@ class Router {
|
|||
/**
|
||||
* Processes the request
|
||||
*
|
||||
* Request Example: http://sub.domain.local/vz/backend/channel/550e8400-e29b-11d4-a716-446655440000/data.json?operation=edit&title=New Title
|
||||
* Example: http://sub.domain.local/vz/backend/channel/550e8400-e29b-11d4-a716-446655440000/data.json?operation=edit&title=New Title
|
||||
*/
|
||||
public function run() {
|
||||
$pathInfo = substr($this->pathInfo, 1, strrpos($this->pathInfo, '.') -1); // remove leading slash and format
|
||||
|
|
Loading…
Add table
Reference in a new issue