Questions tagged [symfony-kernel]
6 questions
2
votes
1 answer
Using globals in functional tests (with Symfony and Codeception)
I want to test this function:
static protected function getContainerInterface()
{
global $kernel;
if (get_class($kernel) == 'AppCache') {
/** @var \AppCache $cache */
$cache = $kernel;
$kernel = $cache->getKernel();
…

sirKrono
- 46
- 4
1
vote
0 answers
Symfony HTTPKernel Component raise a fatal error because of Config Component
I've got a fatal error when I try to simply use the HttpKernel Component.
Fatal error: Class 'Symfony\Component\Config\FileLocator' not found in /.../vendor/symfony/http-kernel/Config/FileLocator.php on line 23
All packages has been install via…

Adrien Loyant
- 11
- 4
0
votes
1 answer
doctrine migrations configuration: kernel.project_dir is not interpolated
I'm trying to generate and execute migrations using doctrine/doctrine-migrations-bundle.
Project specs:
Project deployed in docker. Mapping configured successfully.
Framework: symfony.
Kernel::getProjectDir() overrided successfully.
Project…

Gregory Sysoev
- 173
- 1
- 15
0
votes
1 answer
how to call kernel terminate event
Im trying to send response to user and after it make hard work in my service. I found another thread there(How tout use kernel.terminate Event in a Service). But it doesnt works.When i tried make like in there i got next messages in my logs:…

Slava 111
- 37
- 1
- 4
0
votes
1 answer
Setting up multiple Kernels in Symfony 4
I am trying to set up a multi-site architecture in Symfony 4 using multiple Kernels.
It would be too lengthy to post all of the changes I have made but I basically followed the Symfony docs for creating a new Kernel and the changes I made can be…

yevg
- 1,846
- 9
- 34
- 70
-1
votes
1 answer
Symfony - unable to find custom kernel namespace
I changed directory structure in Symfony and I want it to work without success.
Autoload:
"autoload": {
"psr-4": {
"D2D\\": "src/"
}
},
Front controller (public\index.php):

rafineria888wp
- 43
- 1
- 5