Skip to content

Commit

Permalink
Fixed upgrade guide spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Jun 22, 2017
1 parent 76f9594 commit 8f65e56
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/en/04_Changelogs/4.0.0.md
Expand Up @@ -275,7 +275,7 @@ After:

:::php
public function httpSubmission($data, $form, $request) {
$requset->getSession()->set('loggedIn', null);
$request->getSession()->set('loggedIn', null);
}


Expand Down Expand Up @@ -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:<url>` directly via config.
* `Director.rules` config no longer support `redirect:<url>` 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();`.
Expand Down

0 comments on commit 8f65e56

Please sign in to comment.