renew class run
This commit is contained in:
parent
204de1964c
commit
d9a48ea714
|
@ -37,17 +37,9 @@ class BillingController extends AbstractController
|
|||
|
||||
list($service, $function) = explode('::', $serviceToCall);
|
||||
|
||||
$srv = null;
|
||||
|
||||
if (class_exists($service))
|
||||
$srv = new $service();
|
||||
else
|
||||
$this->logger->error("Can't find your class to redirect webhook");
|
||||
|
||||
if (method_exists($srv, $function))
|
||||
$srv->{$function}($session);
|
||||
else
|
||||
$this->logger->error("Can't find your method in class " . $service);
|
||||
|
||||
return $this->json("OK", 200);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue