 				
 			# Invoke hook `routeAlter`.
 			# Allow packages to alter defined routes.
-			invoke(
+			$injector.invoke(
 				injectable, null
 				routes: routes
 			) for injectable in pkgmanProvider.invokeFlat 'routeAlter'


	# ## Implements hook `appConfig`
	registrar.registerHook 'appConfig', -> [
		'$injector', '$routeProvider', '$locationProvider', 'shrub-pkgmanProvider'
		({invoke}, $routeProvider, $locationProvider, pkgmanProvider) ->
			
			routes = {}
			

		'$rootScope', '$location', '$window', 'shrub-socket'
		($rootScope, $location, $window, socket) ->
			
			# Split the path into the corresponding classes, e.g.
			#
			# foo/bar/baz -> class="foo foo-bar foo-bar-baz"
