コード例 #1
0
 /**
  * @param \Housekeeper\Contracts\Flow\After $afterFlow
  */
 public function handle(AfterFlowContract $afterFlow)
 {
     $returnResult = $afterFlow->getReturnValue();
     if ($returnResult instanceof Arrayable) {
         $afterFlow->setReturnValue($returnResult->toArray());
     }
 }
コード例 #2
0
 /**
  * @param \Housekeeper\Contracts\Flow\After $afterFlow
  */
 protected function remember(AfterFlowContract $afterFlow)
 {
     $this->setCacheForAction($afterFlow->getAction(), $afterFlow->getReturnValue());
 }