silverstripe-framework/docs/en/changelogs/3.1.5.md
Damian Mooyman d06d5c113b API Injector supports nesting
BUG Resolve issue with DirectorTest breaking RequestProcessor
Injector::nest and Injector::unnest are introduced to better support sandboxing of testings.
Injector and Config ::nest and ::unnest support chaining
Test cases for both Injector::nest and Config::nest
2014-04-29 08:59:33 +12:00

710 B

3.1.5

Upgrading

  • If running an application in an environment where user security is critical, it may be necessary to assign the config value Security.remember_username to false. This will disable persistence of user login name between sessions, and disable browser auto-completion on the username field. Note that users of certain browsers who have previously autofilled and saved login credentials will need to clear their password autofill history before this setting is properly respected.
  • Test cases that rely on updating and restoring [api:Injector] services may now take advantage of the new Injector::nest() and Injector::unnest() methods to sandbox their alterations.