rfc:pipe-operator

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
rfc:pipe-operator [2016/07/20 23:39] – Bump to 0.2; Rephrased proposal around fluent expressions. pollitarfc:pipe-operator [2016/07/21 00:08] – Semicolons... pollita
Line 25: Line 25:
   $config = loadConfig();   $config = loadConfig();
   $dic = buildDic($config);   $dic = buildDic($config);
-  $app = getApp($dic) +  $app = getApp($dic); 
-  $router = getRouter($app) +  $router = getRouter($app); 
-  $dispatcher = getDispatcher($router, $request) +  $dispatcher = getDispatcher($router, $request); 
-  $logic = dispatchBusinessLogic($dispatcher, $request, new Response()) +  $logic = dispatchBusinessLogic($dispatcher, $request, new Response()); 
-  $render = renderResponse($logic) +  $render = renderResponse($logic); 
-  $psr7 = buildPsr7Response($render)+  $psr7 = buildPsr7Response($render);
   $response =emit($psr7);     $response =emit($psr7);  
  
Line 37: Line 37:
   $x = loadConfig();   $x = loadConfig();
   $x = buildDic($x);   $x = buildDic($x);
-  $x = getApp($x) +  $x = getApp($x); 
-  $x = getRouter($x) +  $x = getRouter($x); 
-  $x = getDispatcher($x, $request) +  $x = getDispatcher($x, $request); 
-  $x = dispatchBusinessLogic($x, $request, new Response()) +  $x = dispatchBusinessLogic($x, $request, new Response()); 
-  $x = renderResponse($x) +  $x = renderResponse($x); 
-  $x = buildPsr7Response($x)+  $x = buildPsr7Response($x);
   $response =emit($x);     $response =emit($x);  
  
rfc/pipe-operator.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1