MoneyBundle | Please note that this package
kandi X-RAY | MoneyBundle Summary
kandi X-RAY | MoneyBundle Summary
Please note that this package it is not considered stable yet.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get the configuration tree builder .
- Load services . xml .
MoneyBundle Key Features
MoneyBundle Examples and Code Snippets
Community Discussions
Trending Discussions on MoneyBundle
QUESTION
I'm starting to migrate my application to symfony4 but I have the following deprecation notice in one of my third-party bundle ( tbbcmoneybundle . And I would like to know what to change in order to propose a PR
Currently the build is failing because of these errors (complete report here )
...ANSWER
Answered 2018-Jan-05 at 17:58The problem looks like it comes from the loss of container awareness (if that's a valid phrase) in Symfony 4, which started in Symfony 3.4. This blog talks about restricting container injection in 3.4 and how it will go away in 4.0.
It looks as though someone has opened a PR to upgrade to Symfony 4, but that is failing. (Looks like you're trying to help that along as well.)
According to this Travis integration test that is failing, the commands which extend "ContainerAwareCommand" are the source of the fail.
Which makes sense. The ContainerAwareCommand attempts to inject the Container, which is set to private
in Symfony 4 (and deprecated since 3.4) as outlined in the blog post above. A fix, and I think you want to fix this in a PR to TBBC if I read your question correctly, seems to be to remove the extension of ContainerAwareCommand from those command classes and just inject the services necessary. See the new Symfony 4 doc on commands (and note that ContainerAware is no longer an option as it was in 2.8-ish.)
In short, get rid of the extension to ContainerAwareCommand and inject the services used by those commands. (Might need to do some extra configuration to ensure that the services are public.)
QUESTION
I have unusual problem..in my sylius project when I add 2 products to the cart, cart total is not correct. It is always less than it should be, even though there are no discounts or adjustments attached to the products. I have not changed sylius original logic behind that, but I have changed ChannelPricing entity and added fields oldPrice and discount. I'm not sure if that had anything to do with it. I tried reverting to see would it change anything, but no luck. This is my code for channelpricing:
...ANSWER
Answered 2017-Jan-23 at 07:55I'm pretty sure that the ChannelPricing modification changes everything. Did you try to see what is saved on the ChannelPricing related to your OrderItem?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MoneyBundle
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page