diff --git a/BillingBundle/Controller/BillingController.php b/BillingBundle/Controller/BillingController.php index cbbe6db..4e8ded9 100644 --- a/BillingBundle/Controller/BillingController.php +++ b/BillingBundle/Controller/BillingController.php @@ -37,7 +37,7 @@ class BillingController extends AbstractController list($service, $function) = explode('::', $serviceToCall); - $srv = new $service(); + $srv = $this->container->get($service); $srv->{$function}($session);