Example #1
0
 protected static function doCommand(Request $request, AbsractStorage $storage, AbstractResponse $response)
 {
     $result = $storage->command($request->getCommandName(), $request->getCommandParams());
     $response->setData($result);
 }
 protected static function doCommand(Request $request, AbsractStorage $storage, AbstractResponse $response)
 {
     $result = call_user_func_array([$storage, $request->getCommandName()], $request->getCommandParams());
     $response->setData($result);
 }