 exec = require "child_process"
 config = require "../config.coffee"
+md5 = require 'MD5'
+fs = require 'fs'
 
 data =
   statics: [],
   methods: []
 
+###*
+ * Executes a command to PHP proxy
+ * @param  {string}  command Command to exectue
+ * @param  {boolean} async   Must be async or not
+ * @return {array}           Json of the response
+###
 execute = (command, async) ->
   return [] if data.error?
 


    return data.methods[className]

  init: () ->
    atom.workspace.observeTextEditors (editor) =>
      editor.onDidSave =>


    #execute("--refresh", true)

  ###*
   * Autocomplete for classes name
   * @return {array}
  ###
  classes: () ->
    if not data.classes?
      res = execute("--classes", false)
