Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
343 views

In Symfony 7 app, I'm mapping request with MapQueryString/MapRequestPayload attributes. Controller's endpoint returns validation errors if request's parameter is of the wrong type. Here it is of type ...
Oleg Vartanov's user avatar
-1 votes
1 answer
520 views

The HttpKernel component from Symfony is, alone, a powerful component to deal with the Request to Response conversion during the Client browser's HTTP Requests. I have been, however, struggling to get ...
scruffycoder86's user avatar
1 vote
1 answer
4k views

Symfony 5.3.10 PHP 8.0.8 I have a public webhook used for user activation (by clicking a link in an email). Something like: https://mydomain.fake/user/123-5346-6787-89-789/1234678567945asd The ...
Jack Skeletron's user avatar
0 votes
3 answers
520 views

Goal : redirect a user depending on a status, on the whole website when the user is logged. I need to force the user to be on one page until he has changed his profile So i try to make a ...
iometrine's user avatar
5 votes
1 answer
12k views

I want to register a bundle in the AppKernel Class in Symfony 4 according to this tutorial: https://symfony.com/doc/3.3/bundles.html But I do not find a folder "app", and also not the file AppKernel....
peace_love's user avatar
  • 6,523
1 vote
1 answer
261 views

I would like to access Symfony 3's Kernel.getEnvironment() in a service implementing the ContainerAwareTrait. I am wondering whether I should implement an instance of the Kernel object or whether one ...
Jérôme Verstrynge's user avatar
2 votes
0 answers
44 views

I am trying to implement Symfony Kernel into a legacy application I developed which had a custom mechanism for handling URL routing. Is there a way of replacing the routing mechanism supplied by ...
Stanley Ngumo's user avatar
6 votes
2 answers
10k views

I need to get kernel.root_dir in my twig template, I found solutions here, but it does not work. I get error about non existing method Kernel in this class. Realy in GlobalVariables class method ...
nowiko's user avatar
  • 2,577
2 votes
0 answers
115 views

I'm trying to log stats after my response has been sent in Symfony 2. I'm using the kernel.terminate event but I can't use the session from it because headers have been sent. So I'd like to use a ...
MortisQc's user avatar
  • 164
12 votes
3 answers
20k views

I'm trying to dynamically set a parameter in Symfony2 (that I cannot statically set in my parameters.yml file). My approach is to use an EventListener: namespace Acme\AcmeBundle\EventListener; use ...
dialogik's user avatar
  • 9,592
5 votes
2 answers
2k views

Is there a way to access the kernel from inside a compiler pass? I've tried this: ... public function process(ContainerBuilder $container) { $kernel = $container->get('kernel')...
orourkedd's user avatar
  • 6,431
7 votes
1 answer
3k views

I'm trying to follow this article: http://fabien.potencier.org/article/62/create-your-own-framework-on-top-of-the-symfony2-components-part-12 Also looking at HttpKernel https://github.com/symfony/...
mr1031011's user avatar
  • 3,852
6 votes
2 answers
4k views

I needed to move my model from the controller method, so I got help to change it to a service. The service by itself works, but I need to be able to connect to doctrine and the kernel from inside of ...
Paweł Madej's user avatar
  • 1,289