diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index 6870834f7..6fa1d7632 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -275,7 +275,7 @@ After: :::php public function httpSubmission($data, $form, $request) { - $requset->getSession()->set('loggedIn', null); + $request->getSession()->set('loggedIn', null); } @@ -1382,11 +1382,10 @@ After (`mysite/_config/config.yml`): * Removed `ConfigureFromEnv.php` as it's no longer necessary. * `Session` object has had significant refactoring. This object no longer is accessed via - Session::inst(), but instead should be queried from the current request via `$request->getSession()`. + `Session::inst()`, but instead should be queried from the current request via `$request->getSession()`. 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. -* Request handling has changed slightly. `Director.rules` confing no longer support - `redirect:` directly via config. +* `Director.rules` config no longer support `redirect:` directly via config. * `Director::get_environment_type()` and `Director::set_environment_type()` are removed. Get the `Kernel` instance via injector and query `getEnvironment()` instead. E.g. `$type = Injector::inst()->get(Kernel::class)->getEnvironment();`.