 
   activate: ->
     @registerProviders()
+    @registerGotos()
     config.init()
     proxy.init()
-    goto.init()
 
   deactivate: ->
     @providers = []

ParentProvider = require "./providers/parent-provider.coffee"
SelfProvider = require "./providers/self-provider.coffee"

config = require './config.coffee'
proxy = require './services/php-proxy.coffee'
goto = require './services/goto.coffee'

module.exports =
  config:


  getProvider: ->
    @providers

  registerGotos: ->
    @gotos = []
    @gotos.push new GotoClass()
    @gotos.push new GotoFunction()

    for goto in @gotos
      goto.init()

  deactivateGotos: ->
    for goto in @gotos
      goto.deactivate()
