/**
  * Install extension
  *
  * @return string
  *
  * @access public
  */
 public function install()
 {
     $repo = new aam_Core_Repository();
     $license = aam_Core_Request::post('license');
     $ext = aam_Core_Request::post('extension');
     if ($license && $repo->add($ext, $license)) {
         $response = array('status' => 'success');
     } else {
         $response = array('status' => 'failure');
     }
     return json_encode($response);
 }