Skip to content

$stripeApiKeyhas no type-hint #11

@nigelmann

Description

@nigelmann

Hey,

I working on a symfony 4 project and when i wanted to integrate the bundle. when i try to create a customer i have this

Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\RuntimeException: "Cannot resolve argument $stripeClient of "App\Controller\User\RegisterPaymentMethodController()": Cannot autowire service "Flosch\Bundle\StripeBundle\Stripe\StripeClient": argument "$stripeApiKey" of method "__construct()" has no type-hint, you should configure its value explicitly." at /Users/simonackermann/Sites/courses/symfony/champeryNb/var/cache/dev/ContainerOspQEUr/getStripeClientService.php line 9

I realy don't know what to do.
here is all my code;
https://github.com/simonackermann/private-rent/tree/feature/creditCardPayment

Thanks in advanc for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions