Fixed upgrade guide spelling

This commit is contained in:
Ingo Schommer 2017-06-22 22:25:50 +12:00
parent 76f95944fa
commit 8f65e56532

View File

@ -275,7 +275,7 @@ After:
:::php :::php
public function httpSubmission($data, $form, $request) { 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. * Removed `ConfigureFromEnv.php` as it's no longer necessary.
* `Session` object has had significant refactoring. This object no longer is accessed via * `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. 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. Please see the upgrading section on Session object for more details.
* Request handling has changed slightly. `Director.rules` confing no longer support * `Director.rules` config no longer support `redirect:<url>` directly via config.
`redirect:<url>` directly via config.
* `Director::get_environment_type()` and `Director::set_environment_type()` are removed. * `Director::get_environment_type()` and `Director::set_environment_type()` are removed.
Get the `Kernel` instance via injector and query `getEnvironment()` instead. Get the `Kernel` instance via injector and query `getEnvironment()` instead.
E.g. `$type = Injector::inst()->get(Kernel::class)->getEnvironment();`. E.g. `$type = Injector::inst()->get(Kernel::class)->getEnvironment();`.