diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-22 00:33:58 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-12-22 00:34:13 +0300 |
commit | 265ee6239ec80a964ce403391936c541c045c112 (patch) | |
tree | 79f0a2c5f6148b3b7e1e0ebc005ccd98bdb229e9 /core/Container | |
parent | 680f33e2bd3fd725257483aa9a34c15c73fd71f8 (diff) |
#6881 Recreate the container in the 'web' environment in 'climulti:request'
Diffstat (limited to 'core/Container')
-rw-r--r-- | core/Container/StaticContainer.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Container/StaticContainer.php b/core/Container/StaticContainer.php index 53092a87da..048ba8a687 100644 --- a/core/Container/StaticContainer.php +++ b/core/Container/StaticContainer.php @@ -67,6 +67,11 @@ class StaticContainer return $containerFactory->create(); } + /** + * Set the application environment (cli, test, …) or null for the default one. + * + * @param string|null $environment + */ public static function setEnvironment($environment) { self::$environment = $environment; |