Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 10 months ago. Improve this question
Tag: symfony
Symfony Webpack not working server return 404 in CSS/JS
I working on Symfony project but when I want implement Tailwind I have problem when I want render images it return 404.. I went through the whole internet and found no answer please help me btw. Rendering Image through url also not working webpack.config.js tailwind.config.js assets/app.js twig usage Answer Ok so I fixed it, I don’t know why, but I
Shopware : How to get customFields for products in the Order Object
I am currently trying to get a custom field ’emakers_custom_field_warehouse_name’ in the products when an order is made with the code below. Here’s my search Request : Here’s what I get when I serialize $orderObject->getLineItems->first()->getProduct() : https://gist.github.com/Youmar0504/8b53632fbc1b43c11769711519a74a17 What I already tried and gave me empty result : TBH, I don’t know what to try else. It looks like (if you
Use a request header with HTTP Client to external Api server
Consider the following request to a Symfony controller: This code snippet is a minimal example for the usage in a controller. The controller accepts a Request, and uses the x-token header for authenticating against the 3rd Party Api (here: localhost:3001). Is there a way, to automate this process? So basically – listen to incoming requests and inject the x-token header
New alternative for getDoctrine() in Symfony 5.4 and up
As my IDE points out, the AbstractController::getDoctrine() method is now deprecated. I haven’t found any reference for this deprecation neither in the official documentation nor in the Github changelog. What is the new alternative or workaround for this shortcut? Answer As mentioned here: Instead of using those shortcuts, inject the related services in the constructor or the controller methods. You
check if select count value is null/empty query builder symfony
My query builder looks like this is there any way to check that t_total and z_total is null? I don’t want show this row only if t_total AND z_total is null/empty Answer as @mickmackusa say works the way i wanted
Guzzle Symfony scrape iframes inside multiple Servers
I am building a scraper to scrape content using guzzle and symfony dom crawler But I run into an issue. The page I am scraping has multiple Iframe servers They default iframe is shown when the scraper loads the page but in order to get the other servers it needs to click there buttons and so it reflects the server
How to set referer Header in Guzzle and get CDN Content
I want to scrape a website and am using guzzle 7.4 and Symfony Dom Crawler I successfully retrieved the HTML data But the website is using CDN to host some resources and they are not loading because the header is not sent to get those resources below is code retrieving html If I access the CDN directly and set referer
How to make a single endpoint operation public in API Platform?
In API Platform, I have all the endpoints secured with JWT but I would like to have the POST User public so users can register themselves. How can I do this at entity level? if I implement this in security.yaml as usual in Symfony it works I just would like to know if I can do it at entity level
Customize new authentication errors messages on Symfony5.3
on my new symfony 5.3 project i just implemented the new authentication system, and it works fine, but my problem is that i can’t customize the authentication errors: in the method: onAuthentificationFailure in the AbstractLoginFormAuthenticator but in my view it only displays the session error which is normal since my controller calls the getLastAuthenticationError() method. but how could I display