mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
get_environment_type() still exists in SS4
This commit is contained in:
parent
dcc21ea21b
commit
8a1e466c75
@ -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`).
|
||||
|
Loading…
Reference in New Issue
Block a user