$this->request =
$args->
getSubject()->
Request();
$this->response =
$args->
getSubject()->
Response();
if ($this->request->
getModuleName() != 'api'
) { return;
} $this->isApiCall = true;
$router =
new Router();
$router->
assembleRoute($this->request,
$this->response
);
} /**
* This pre-dispatch event-hook checks permissions
*
* @return void
*/
public function onFrontPreDispatch(Enlight_Controller_EventArgs
$args) { $request =
$args->
getRequest();
$response =
$args->
getResponse();