lib/private/AppFramework/Middleware/MiddlewareDispatcher.php
/**
	 * This is being run after a successful controllermethod call and allows
	 * the manipulation of a Response object. The middleware is run in reverse order
	 *
	 * @param Controller $controller the controller that is being called
	 * @param string $methodName the name of the method that will be called on
	 *                            the controller
	 * @param Response $response the generated response from the controller
	 * @return Response a Response object
	 */
This is being run after a successful controllermethod call and allows
the manipulation of a Response object. The middleware is run in reverse order

@param Controller $controller the controller that is being called
@param string $methodName the name of the method that will be called on
the controller
@param Response $response the generated response from the controller
@return Response a Response object
This is being run after a successful controllermethod call and allows the manipulation of a Response object . The middleware is run in reverse order @param Controller $controller the controller that is being called @param string $methodName the name of the method that will be called on the controller @param Response $response the generated response from the controller @return Response a Response object
public function afterController(Controller $controller, $methodName, Response $response){
		for($i=count($this->middlewares)-1; $i>=0; $i--){
			$middleware = $this->middlewares[$i];
			$response = $middleware->afterController($controller, $methodName, $response);
		}
		return $response;
	}
public function afterController ( Controller $ controller , $ methodName , Response $ response ) { for ( $ i = count ( $ this -> middlewares ) - 1 ; $ i >= 0 ; $ i -- ) { $ middleware = $ this -> middlewares [ $ i ] ; $ response = $ middleware -> afterController ( $ controller , $ methodName , $ response ) ; } return $ response ; }
This is being run after a successful controllermethod call and allows
 the manipulation of a Response object.
This is being run after a successful controllermethod call and allows the manipulation of a Response object .