 				routes[route.path ? path] = route
 				
 			# Invoke hook `routeMock`.
-			# Allow packages to define routes in the Angular application which are
-			# only defined during test mode.
+			# Allow packages to define routes in the Angular application which
+			# are only defined during test mode.
 			if config.get 'packageConfig:shrub-core:testMode'
 				for path, route of pkgmanProvider.invoke 'routeMock'
 					routes[route.path ? path] = route

							promises
						)
						
						promiseArray = []
						promiseKeysArray = []

						angular.forEach promises, (promise, key) ->
							promiseKeysArray.push key
							promiseArray.push promise
		
						originalAll(promiseArray).then (results) ->
							objectResult = {}
							
							angular.forEach results, (result, index) ->
								objectResult[promiseKeysArray[index]] = result
		
							objectResult

						($controller, $injector, $scope) ->
							
							# Invoke hook `routeControllerStart`.
							# Allow packages to act before a new route
							# controller is executed.
							injectables = pkgmanProvider.invokeFlat(
								'routeControllerStart'
							)
