« Previous | Next » 

Revision 817017e0

ID817017e0051be25da3a675c666f811f88a62c802

Added by Karsten Dambekalns over 9 years ago

[!!!][TASK] Clean up Environment after HTTP refactoring

With the HTTP foundation quite some things from Environment have become
obsolete. The class and it's "users" are adjusted in this change.

The following methods are removed from Environment (check Http\Request
to see if a method you need is available there) with this change:

  • setBaseUri
  • getHTTP*
  • getAcceptedFormats
  • getRemoteAddress
  • getRemoteHost
  • getRequestProtocol
  • getRequestUri
  • getBaseUri
  • getScriptPathAndFileName
  • getScriptRequestPathAndFileName
  • getScriptRequestPath
  • getRequestMethod
  • getCommandLineArgumentCount
  • getCommandLineArguments
  • getSAPIName
  • getRawGetArguments
  • getRawPostArguments
  • getUploadedFiles
  • getRawServerEnvironment

Most of those were marked as public API, but we still decided to drop
them, as their use cases were only guesswork.

For some things that used to be available, access to the current request
is now needed. For this, getHttpRequest() was added to the new
HttpRequestHandlerInterface, which returns the current HttpRequest.

Change-Id: I18fe7d44207bd2e170eec72d60d7d92ed91cf152
Resolves: #36340
Related: #35243
Releases: 1.1

  • added
  • modified
  • copied
  • renamed
  • deleted