From 8a1e466c757a0f98a94757fbd301b0cbf4e1b19a Mon Sep 17 00:00:00 2001 From: Reece Alexander Date: Mon, 16 Oct 2017 15:17:16 +1300 Subject: [PATCH] get_environment_type() still exists in SS4 --- docs/en/04_Changelogs/4.0.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index ef7c73dd8..f7d537aec 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -1943,7 +1943,7 @@ that it belongs to, e.g. `themes/mytheme/templates/MyVendor/Foobar/Model/MyModel All static methods have been removed, and the `inst_` prefix removed from all instance members. Please see the upgrading section on Session object for more details. * `Director.rules` config no longer support `redirect:` directly via config. -* `Director::get_environment_type()` and `Director::set_environment_type()` are removed. +* `Director::set_environment_type()` has been removed. Get the `Kernel` instance via injector and query `getEnvironment()` instead. E.g. `$type = Injector::inst()->get(Kernel::class)->getEnvironment();`. * The environment can no longer be configured via YAML (`Director.environment_type`).