 		# Kick things off.
 		invoke()
 
+i8n = require 'inflection'
+
+config = require 'config'
+pkgman = require 'pkgman'
+
+debug = require('debug') 'shrub:middleware'
+
 # ## fromHook
 #
 # Create a middleware stack from the results of a hook and path configuration.
 exports.fromHook = (hook, paths, args...) ->
 
-	middleware = new Middleware
+	middleware = new Middleware()
 
 	# Invoke the hook and `use` the middleware in the paths configuration
 	# order.

# Error-handling middleware are only called if a previous middleware threw or
# passed an error. Conversely, non-error-handling middleware are skipped if a
# previous error occurred.
exports.Middleware = class Middleware

	# ## *constructor*
	#


# # Middleware

{EventEmitter} = require 'events'

# ## Middleware
#
