minor #28463 KernelInterface can return null for getContainer method (gmponos)
This PR was submitted for the master branch but it was merged into the 2.8 branch instead (closes #28463).
Discussion
----------
KernelInterface can return null for getContainer method
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| License | MIT
According to [this](https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/FrameworkBundle/Client.php#L45) a KernelInterface can return null if it is shutdown.
Commits
-------
7cb340a2db
KernelInterface can return null container
This commit is contained in:
commit
ed8dd86e20
@ -139,7 +139,7 @@ interface KernelInterface extends HttpKernelInterface, \Serializable
|
||||
/**
|
||||
* Gets the current container.
|
||||
*
|
||||
* @return ContainerInterface A ContainerInterface instance
|
||||
* @return ContainerInterface|null A ContainerInterface instance or null when the Kernel is shutdown
|
||||
*/
|
||||
public function getContainer();
|
||||
|
||||
|
Reference in New Issue
Block a user