diff --git a/BillingBundle/Resources/config/services.yaml b/BillingBundle/Resources/config/services.yaml index a1ab407..523f098 100644 --- a/BillingBundle/Resources/config/services.yaml +++ b/BillingBundle/Resources/config/services.yaml @@ -1,5 +1,6 @@ services: - # default configuration for services in *this* file - _defaults: - autowire: true # Automatically injects dependencies in your services. - autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. + Bluesquare\BillingBundle: + resource: "../../Service/*" + arguments: + $container: "@service_container" + diff --git a/BillingBundle/Service/BillingSrv.php b/BillingBundle/Service/BillingSrv.php index 8bdbabd..e713734 100644 --- a/BillingBundle/Service/BillingSrv.php +++ b/BillingBundle/Service/BillingSrv.php @@ -12,6 +12,7 @@ class BillingSrv { $this->container = $container; } + public function createPurchase($items) { $apiKey = $this->container->getParameter('stripe_api_key_secret');