コード例 #1
0
 /**
  * acquia_connector.migrate_check route callback for checking client upload.
  */
 public function migrateCheck()
 {
     $return = array('compatible' => TRUE);
     $migrate = new Migration();
     $env = $migrate->checkEnv();
     if (empty($env) || $env['error'] !== FALSE) {
         $return['compatible'] = FALSE;
         $return['message'] = $env['error'];
     }
     return new JsonResponse($return);
 }