All Questions
1,244
questions
0
votes
0
answers
28
views
Customizing Error Responses for Non-Existent Resource IDs in API Platform
I'm using API Platform in my Symfony application and encountering an issue with the automatic Get() route when searching for a resource that doesn't exist. Currently, API Platform returns a default ...
0
votes
0
answers
15
views
Symfony 5: 404 error page routing for different themes of a multi-site repo
For my main site, https://hb.test/_error/404 works fine.
However, for the other site https://hart.test/_error/404 under the same repo,
Symfony Profiler shows that themes/hb/templates/bundles/...
0
votes
1
answer
57
views
How to make Symfony working with tests folders
I would like to add a "tests" folder in Symfony.
Here is my composer.json :
"autoload": {
"psr-4": {
"AppBundle\\": "src/AppBundle"
...
0
votes
0
answers
43
views
Symfony Framework - Route cannot be found even if it is defined in Controller
I have a multiple Controllers for different Security Levels (So a UserController for pages for users, AdminController for admin pages). I have one Controller where all of the other routes work
class ...
0
votes
2
answers
1k
views
After updating Symfony from 5.4 to 6.4 routing.yml stoped working
I have a project legacy that I have been updating since symfony 2. Now I am at 6.4 however my routes stoped working.
In my routing.yml i am trying to fix the routes in the Admin folder.
Following the ...
1
vote
0
answers
74
views
Symfony cannot load resource
Symfony is giving me this error, at any time I am trying to clear cache or access endpoint.
Cannot load resource "{"name":"Applicant","path":"%kernel....
0
votes
0
answers
49
views
Symfony, Command and routes
Maybe a stupid one but it might help me to save lots of code rewriting.
I have a Symfony 4.1 app that generates PDF files by calling routes inside a controller.
Unfortunately the PDF creation time has ...
0
votes
0
answers
165
views
Symfony router problem after upgrading pimcore app from 6.9 to 10.6
I'm stuck in totally not working Pimcore after upgrade from 6.9 to 10.6 (earlier upgraded from 6.6 to 6.9 without bigger problems). It is also update of Symfony from 4 to 5
Unfortunately right now, I'...
0
votes
0
answers
127
views
In Symfony, how to match a specific route regex?
My question is very basic but I cannot find the answer.
Could you give me an example url to match this route?
#[Route('/blog/{post/<[0-9]+>}', name:'view_blog_post')]
Thanks for your help!
0
votes
1
answer
266
views
Symfony JWT The requested URL was not found on this server
I installed symfony version 6.3.1 with jwt and followed the instructions on the symfony page. However, when I try to login_check route with Postman, it doesn't find the route.
#security.yml
security:
...
0
votes
0
answers
33
views
What is the result of this Symfony controller code assuming a missing YAML file?
I want help regarding this question in a quiz about symfony basics
assuming we at the path : localhost:8000/mark
what is the result of this code: assuming we don't know what is in the yaml file
...
0
votes
1
answer
245
views
Symfony 6 Routing Translation
Hi guys I didn't find in documentation and neither jmsi18nroutingbundle seem to be updated for symfony 6 routing i18n, how can I apply this ?
Error I get with jmsi18nroutingbundle on symfony 6
Compile ...
0
votes
1
answer
180
views
Symfony 6.2 Routing - Check if a parameter matches a row in database
In symfony 6.2 how can I do so a method is called to check if the first parameter matches something in database?
I tried setting up a service to setup a Custom Route Loader, but I'm not managing to ...
0
votes
0
answers
318
views
How can I make Symfony 6 dynamic router match URLs with question marks in them?
I'm rewriting one old website into Symfony. There is requirement that old URL addresses stay so I dumped them into database and wrote custom dynamic route loader. The problem is that some URLs contain ...
1
vote
1
answer
596
views
Adding custom routes to Symfony without using the route loader
Recently I've hit a wall regarding one feature we need - routing.
The routes in our application are static, but depending on the environment the urls differ. By default Symfony generates routes based ...