get_environment_type() still exists in SS4

This commit is contained in:
Reece Alexander 2017-10-16 15:17:16 +13:00 committed by Daniel Hensby
parent dcc21ea21b
commit 8a1e466c75
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

View File

@ -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:<url>` 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`).