function route($handler, $module, $action) { if ($handler == 'TTAM') { if ($module == 'Authenticator') { $auth = new Authenticator(); if ($action = 'getToken') { $authCode = $_GET['code']; $data = $auth->getToken($authCode); } } } }