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

Class "" used for service "jms\payment\corebundle\command\generatekeycommand" cannot be found #93

Closed
jeremydu opened this issue Feb 12, 2019 · 3 comments

Comments

@jeremydu
Copy link

Hello,

As inicate above in update or in 1st installation

I have the error:
PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: Class "" used for service "jms\payment\corebundle\command\generatekeycommand" cannot be found. in /www/vendor/symfony/symfony/src
/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConsoleCommandPass.php:40

jms/payment-core-bundle 1.4.0
jms/payment-paypal-bundle 1.2.0

Thank you in advance.

@psrpinto
Copy link
Collaborator

psrpinto commented Feb 16, 2019

Did you manage to solve it? I think the problem might be that the service definition doesn't specify the class attribute, here: https://github.com/schmittjoh/JMSPaymentCoreBundle/blob/master/Resources/config/commands.xml#L7

Could you try changing that line to:

<service id="JMS\Payment\CoreBundle\Command\GenerateKeyCommand" class="JMS\Payment\CoreBundle\Command\GenerateKeyCommand">

Please let me know if that works. Thanks.

@jeremydu
Copy link
Author

Thank you @regularjack , it works perfectly, go get a fix?

@psrpinto
Copy link
Collaborator

psrpinto commented Feb 20, 2019

Fixed in schmittjoh/JMSPaymentCoreBundle#231

jms/[email protected] contains the fix.

Thanks for your help!

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

2 participants