This commit is contained in:
Cyprian Beauvois 2019-07-16 14:58:49 +02:00
parent 42e3400f2e
commit ad2305a40a
2 changed files with 6 additions and 4 deletions

View File

@ -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"

View File

@ -12,6 +12,7 @@ class BillingSrv
{
$this->container = $container;
}
public function createPurchase($items)
{
$apiKey = $this->container->getParameter('stripe_api_key_secret');