511 search results

…argument and *fails*. But it does not throw an exception, it "stores" this exception for later. c) Near the end of the process, it notices that CouponCode was never used as a service - we never autowired it anywhere, for example. And so, Symfony *removes* it…
weaverryan
weaverryan
Read Full Comment
…on that URL. 3) Set the "active" client on some `SiteManager` service, so that you can fetch that anywhere you need it and say something like `$siteManager->getActiveClient()`. Let me know if this helps - or if my assumptions about your app were way off ;). Cheers…
weaverryan
weaverryan
Read Full Comment
…system I want to understand or do is very similar to Wordpress, for example in Wordpress in the functions.php file if you create and apply the add_shortcode function will be available anywhere. So my big doubt is that I have a chance to…
Jose carlos C.
Jose carlos C.
Read Full Comment
…Symfony 4.2) configure this option globally, but you can effectively do it by creating some new service that you call, and where *that* service executes the serializer for your and always passes this option. In ApiPlatform, they implement this automatically and they return the…
weaverryan
weaverryan
Read Full Comment
…requiring everything you need. The vendor.js trick is just a build optimization (caveat to this - if you followed this chapter - https://symfonycasts.com/screencast/javascript-webpack/provide-plugin - then you actually CAN reference $ and jQuery anywhere without requiring it first. That's actually…
weaverryan
weaverryan
Read Full Comment
…product" and admin will go to audit table search for product and find out that user John deleted product from cart on 14/8/2018 at 05am :D Or listen for event addToCart anywhere in the software. I am beginner so hopefully it makes sence.
…being too helpful. Has anyone else seen this error? Update: I'm getting the same with the finish folder in the sample code. I'm assuming it's something to do with php7.1/zendserver but I can't test anywhere else at the moment :(
Robert Went
Robert Went
Read Full Comment
…will do a lot. Here in KnpU, we also make sure not to save any personal data we don't need to - e.g. we don't store a user's address anywhere. Obviously, the less data you can store in your server, the better.…
weaverryan
weaverryan
Read Full Comment
…the page works. Also, remove the dump() calls you have in your controller. Then, anywhere in account.html.twig, add this code: ``` {{ dump() }} ``` That's it. What does this look like? This will dump *all* variables we have access to in our template, and might…
weaverryan
weaverryan
Read Full Comment
Blog
Bundles, No Bundles and AppBundle in 10 Steps

…to move everything into one bundle, it's nothing more than a different directory structure. You can even keep the same amount of organization by putting sub-directories in Controller or anywhere else. You might like this, or you might not. The point is: it…

Blog
Setting up Behat on Symfony 5 or higher

…celebrate with a green pass mark on all tests! If you have any issues, feel free to ask us in the comments below or anywhere on the Behat tutorial. We think Behat and that tutorial are great... as long as you can get it installed…