symfony-http-kernel Questions
2
Solved
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 ge...
Ontiveros asked 5/3, 2015 at 7:44
1
Solved
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 AppKer...
Attic asked 12/7, 2018 at 16:22
3
Solved
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;
us...
Printmaking asked 18/4, 2014 at 15:9
2
Solved
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');
}
...
T...
Tiossem asked 13/12, 2012 at 3:46
1
Solved
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...
Vu asked 19/10, 2012 at 15:31
2
Solved
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 o...
Mraz asked 22/3, 2012 at 13:6
1
© 2022 - 2024 — McMap. All rights reserved.