Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GatewayChoiceType not initialized as service #479

Open
GGGGino opened this issue Nov 7, 2018 · 0 comments
Open

GatewayChoiceType not initialized as service #479

GGGGino opened this issue Nov 7, 2018 · 0 comments

Comments

@GGGGino
Copy link

GGGGino commented Nov 7, 2018

Hi,

i see that the FormType "Payum\Core\Bridge\Symfony\Form\Type\GatewayChoiceType" is not initialized as service, so when i use it in a form it gives me an exception because the constructor expects an array, but null is passed.

Type error: Too few arguments to function Payum\Core\Bridge\Symfony\Form\Type\GatewayChoiceType::__construct(), 0 passed in /{root}/vendor/symfony/symfony/src/Symfony/Component/Form/FormRegistry.php on line 89 and exactly 1 expected

The form type "Payum\Core\Bridge\Symfony\Form\Type\GatewayFactoriesChoiceType" is correctly initialized with the "%payum.available_gateway_factories%" parameter instead.

<service id="payum.form.type.gateway_factories_choice" class="Payum\Core\Bridge\Symfony\Form\Type\GatewayFactoriesChoiceType">
    <argument>%payum.available_gateway_factories%</argument>
    <tag name="form.type" />
</service>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant