Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Bug report: Conflict in kernel lifecycle for Symfony test.client and Symfony2Extension #88

Closed
wants to merge 1 commit into from

Conversation

peterjmit
Copy link

When using this extension with the Mink integration, or using the test.client directly both this extension and the test.client try to manage the boot and/or shutdown of the kernel.

See:

This has two consequences.

  1. Steps making a request cause the kernel to boot/shutdown (potential performance issue?)
  2. Strange behaviour when injecting services into contexts. After a request is made, the service injected into the constructor is no longer the service that is being used by the kernel (because the container has been re-initialized.)

I am not sure if this is an issue, or something that can be realistically fixed. I experimented with preventing test.client from calling KernelInterface::shutdown however I ran into issues with sessions trying to re-initialize.

@sroze
Copy link
Contributor

sroze commented Jan 17, 2016

This was a known issue at this time, that is why Symfony's FrameworkBundle Client now have the ability to enable/disable reboot. Closing it.

@sroze sroze closed this Jan 17, 2016
@sroze sroze mentioned this pull request Jan 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants