owncloud-serv/lib/private/appframework/middleware/middlewaredispatcher.php
/**
	 * This is being run after the response object has been rendered and
	 * allows the manipulation of the output. 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 string $output the generated output from a response
	 * @return string the output that should be printed
	 */
This is being run after the response object has been rendered and
allows the manipulation of the output. 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 string $output the generated output from a response
@return string the output that should be printed
This is being run after the response object has been rendered and allows the manipulation of the output . 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 string $output the generated output from a response @return string the output that should be printed
public function beforeOutput(Controller $controller, $methodName, $output){
		for($i=count($this->middlewares)-1; $i>=0; $i--){
			$middleware = $this->middlewares[$i];
			$output = $middleware->beforeOutput($controller, $methodName, $output);
		}
		return $output;
	}
public function beforeOutput ( Controller $ controller , $ methodName , $ output ) { for ( $ i = count ( $ this -> middlewares ) - 1 ; $ i >= 0 ; $ i -- ) { $ middleware = $ this -> middlewares [ $ i ] ; $ output = $ middleware -> beforeOutput ( $ controller , $ methodName , $ output ) ; } return $ output ; }
This is being run after the response object has been rendered and
 allows the manipulation of the output.
This is being run after the response object has been rendered and allows the manipulation of the output .