newInstanceWithoutConstructor(); if($reflection->hasMethod($method)){ if(!empty($params)){ return $service->$method(...$params); } else { return $service->$method(); } } return 0; } } catch (\Exception $e){ //print_r($e->getMessage()); } } }