Summary: |
|
---|
[Corona][Shadow] Add a request option to query the SERVER global
Review Request #391 — Created Nov. 6, 2015 and submitted
Information | |
---|---|
smillernl | |
Lunr | |
personal/sean/request_server_global | |
e3b429b... | |
Reviewers | |
lunr | |
Corona: Add a request option to query the SERVER global
Shadow: Add the parse_server() for Cli Requests
Yes, testing with an invalid server variable could not be done however due to clover breaking on overriding the server super global.
-
-
-
-
src/Lunr/Corona/RequestParserInterface.php (Diff revision 1) I'm not sure if this one should be reset globally.
Check with Heinz on this.Some projects use the SERVER variable directly, so if you reset it, there are gonna break.
Maybe ideally it is better reset.
But then please check all the projects to see if they use this variable directly and adapt them -
src/Lunr/Corona/WebRequestParser.php (Diff revision 1) Since you don't use the function "parse_super_global" the value is actually not reset
-
Summary: |
|
||||
---|---|---|---|---|---|
Description: |
|
||||
Commit: |
|
||||
Diff: |
Revision 2 (+60 -3) |
-
It looks fine for me, you can do the unit tests.
Check with Heinz if he has any remark though. -
src/Lunr/Corona/WebRequestParser.php (Diff revision 2) you should check whether to reset it or not in here as well
-
src/Lunr/Corona/WebRequestParser.php (Diff revision 2) I think the coding style doesn't allow one line if
Change Summary:
$_VAR = ($reset) ? [] : $_VAR;
/me still thinks it's better
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+67 -4) |
Summary: |
|
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||
Testing Done: |
|
|||||||||
Commit: |
|
|||||||||
Diff: |
Revision 4 (+298 -32) |