mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed upgrade guide spelling
This commit is contained in:
parent
76f95944fa
commit
8f65e56532
@ -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:<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();`.
|
||||
|
Loading…
Reference in New Issue
Block a user