Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace $_GET/$_POST/$_FILES with App::getRequestXxx() #2101

Merged
merged 103 commits into from
Sep 30, 2023
Merged
Changes from 1 commit
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
7fdbbe7
Fix PrettyUrl legitimate path
abbadon1334 Aug 23, 2023
ba90e32
Add Unit tests for App::url
abbadon1334 Aug 25, 2023
f2dd8f3
add default excepted page and extension
abbadon1334 Aug 25, 2023
6713d61
fix 7.4 array merge with keys / spread operator
abbadon1334 Aug 25, 2023
04720c5
Add more test cases for App:url
abbadon1334 Aug 25, 2023
80b8fca
Reorganize code
abbadon1334 Aug 25, 2023
27d9cb4
Improve converage
abbadon1334 Aug 26, 2023
67f0594
Improve App::url tests
abbadon1334 Aug 28, 2023
b2810b8
Skip $useRequestUrl=true due to REQUEST_URI
abbadon1334 Aug 28, 2023
3997714
Change REQUEST_URI to Psr7 methods
abbadon1334 Aug 28, 2023
4348ff1
Allow $useRequestUrl=true
abbadon1334 Aug 28, 2023
e4c3428
clean up
abbadon1334 Aug 28, 2023
7895ec9
Improve error message
abbadon1334 Aug 28, 2023
f1fefac
CS Fix
abbadon1334 Aug 28, 2023
308cc87
Merge branch 'develop' into add_tests_app_url
abbadon1334 Sep 3, 2023
23a5a6b
Add App::$urlBuildingPage to customize url building page
abbadon1334 Sep 4, 2023
f3f099f
Comment out App::url failing tests
abbadon1334 Sep 4, 2023
3c36038
Merge branch 'develop' into fix_pretty_url_legitimate_path
abbadon1334 Sep 4, 2023
534cff4
Avoid change of global var $_SERVER
abbadon1334 Sep 4, 2023
a01c3bb
Fix missing request in App for Unit tests
abbadon1334 Sep 4, 2023
62f370b
Comment out not working tests
abbadon1334 Sep 4, 2023
8b3561e
removed getRequestUrl
abbadon1334 Sep 4, 2023
b6ae878
Add failing tests
abbadon1334 Sep 4, 2023
c7840f1
Add methods App::issetRequestXxx App::getRequestXxx
abbadon1334 Sep 5, 2023
f7e819a
Replaced all $_FILES
abbadon1334 Sep 5, 2023
279f796
Replace $_GET App::getRequestGetParam
abbadon1334 Sep 5, 2023
c2e175c
Replace $_GET App::getRequestGetParam
abbadon1334 Sep 5, 2023
e4fb8ab
Replace $_GET App::getRequestGetParam
abbadon1334 Sep 5, 2023
029580c
Add App::tryGetRequestGetParam not raise exceptiona nd return null if…
abbadon1334 Sep 5, 2023
f7bf3fb
Replace $_GET App::has/get/tryGet/RequestGetParam
abbadon1334 Sep 5, 2023
b7241cc
Replace $_GET/$_POST App::has/get/tryGet/RequestGet/PostParam
abbadon1334 Sep 7, 2023
c7b21f9
Replace $_GET/$_POST App::has/get/tryGet/RequestGet/PostParam
abbadon1334 Sep 7, 2023
e2d5123
Cs Fix
abbadon1334 Sep 7, 2023
af6d8b9
Fix Url building if path starts with ..
abbadon1334 Sep 7, 2023
c778a65
Fix JSON POST test
abbadon1334 Sep 7, 2023
ee4ea0a
Fix stan
abbadon1334 Sep 8, 2023
1fe9312
Raise composer require to nyholm/psr7 ( failing lowest tests)
abbadon1334 Sep 8, 2023
766af8a
Align composer require-release to require
abbadon1334 Sep 8, 2023
4a9c711
Cs Fix
abbadon1334 Sep 8, 2023
f1de9eb
Revert "Cs Fix"
abbadon1334 Sep 8, 2023
cccceb1
Cs Fix with latest version
abbadon1334 Sep 8, 2023
645e0aa
Strong type for $urlBuildingXxx vars
abbadon1334 Sep 8, 2023
7022361
Use CreateApp
abbadon1334 Sep 8, 2023
0a1bd7f
Remove message from Assert
abbadon1334 Sep 8, 2023
95b7d1e
Cs Fix
abbadon1334 Sep 8, 2023
7bd47a2
Raise Nyholm/psr7 from 1.4 to 1.6
abbadon1334 Sep 8, 2023
945008d
Merge branch 'develop' into use_request_not_globals
abbadon1334 Sep 8, 2023
d5b4224
Merge branch 'develop' into add_tests_app_url
mvorisek Sep 9, 2023
47d6032
DEBUG REVERT ALL
mvorisek Sep 9, 2023
d4a0810
introduce App::$urlBuildingIndexPage prop
mvorisek Sep 9, 2023
89e3efa
drop protected App::getRequestUrl() method
mvorisek Sep 9, 2023
b490c1f
replace $_SERVER['REQUEST_URI'] with PSR7 request
mvorisek Sep 9, 2023
4d0e4c7
fix cs
mvorisek Sep 9, 2023
8b3bd58
original AppTest changes
mvorisek Sep 9, 2023
fccada4
no manual assert context dump
mvorisek Sep 9, 2023
b14f5fe
allow to create test App with defaults
mvorisek Sep 9, 2023
c3de25c
always use test App in tests
mvorisek Sep 9, 2023
a4c193f
Merge branch 'develop'
mvorisek Sep 9, 2023
84cfbd0
Merge PR 2096
mvorisek Sep 9, 2023
547f2f4
remaining reverted changes from PR 2096
mvorisek Sep 9, 2023
9353bba
Merge develop
mvorisek Sep 9, 2023
b80942d
Merge branch 'develop'
mvorisek Sep 10, 2023
6651bc9
Merge branch 'develop'
mvorisek Sep 10, 2023
dfd4ead
Merge branch 'fix_pretty_url_legitimate_path'
mvorisek Sep 10, 2023
f472b49
Add correct DocBlock
abbadon1334 Sep 10, 2023
80c7417
Add method App::tryGetRequestUploadedFile for consistency
abbadon1334 Sep 10, 2023
f5aaeba
Add to _SERVER key CONTENT_TYPE
abbadon1334 Sep 10, 2023
fdac5e2
Removed Hack
abbadon1334 Sep 10, 2023
b691c26
Cs Fix
abbadon1334 Sep 10, 2023
2c08709
Fix Typo
abbadon1334 Sep 10, 2023
8f8b7df
Fix getRequestPostParam and tryGetRequestPostParam cases
abbadon1334 Sep 10, 2023
c16e299
Fix getRequestPostParam and tryGetRequestPostParam cases
abbadon1334 Sep 10, 2023
d64706e
Recheck usage of Try with useless coalesce
abbadon1334 Sep 10, 2023
c9d06c6
Merge branch 'develop'
mvorisek Sep 14, 2023
4aa74c8
Merge branch 'fix_pretty_url_legitimate_path'
mvorisek Sep 14, 2023
bae7f69
Merge branch 'develop'
mvorisek Sep 14, 2023
9cff373
enable commented tests
mvorisek Sep 14, 2023
75efe8c
silence failing tests
mvorisek Sep 14, 2023
2c2b8ca
add wrongly removed check_unset_page test
mvorisek Sep 14, 2023
ded9e9a
Merge branch 'fix_pretty_url_legitimate_path'
mvorisek Sep 14, 2023
965926e
REVERT ALL (reset to develop)
mvorisek Sep 14, 2023
1fe9677
Merge branch 'develop'
mvorisek Sep 15, 2023
87b02b2
unmerge PR 2095 ('fix_pretty_url_legitimate_path' branch)
mvorisek Sep 15, 2023
dedf6a8
Merge branch 'develop' into use_request_not_globals
mvorisek Sep 17, 2023
de485ae
REVERT ALL (reset to develop)
mvorisek Sep 15, 2023
25e7950
Merge branch 'develop'
mvorisek Sep 22, 2023
7174fa3
Merge branch 'develop'
mvorisek Sep 24, 2023
5e9f268
rm CreateAppTrait::setGlobalsFromRequest() test method
mvorisek Sep 22, 2023
2ed9348
add App request shortcut methods
mvorisek Sep 26, 2023
836ade9
replace all 'isset\(\$_GET\[(.+?)\]' matches
mvorisek Sep 22, 2023
6b92214
replace all '\$_GET\[(.+?)\](?= \?\?)' matches
mvorisek Sep 26, 2023
46f02ec
replace all '\$_GET\[(.+?)\]' matches
mvorisek Sep 22, 2023
eb936bc
replace all '\$_POST\[(.+?)\](?= \?\?)' matches
mvorisek Sep 22, 2023
bfcead2
replace all '\$_POST\[(.+?)\]' matches
mvorisek Sep 22, 2023
6ccd09e
replace remaining $_GET/$_POST
mvorisek Sep 26, 2023
487903a
rename "GetParam" to "QueryParam"
mvorisek Sep 28, 2023
994cc1f
replace/emulate $_FILES
mvorisek Sep 26, 2023
4dd1121
fix $_SERVER emulation for POST test
mvorisek Sep 26, 2023
fb349fd
add edge cases empty GET param test
mvorisek Sep 26, 2023
e63de0a
test all exceptions
mvorisek Sep 26, 2023
acd263e
unset $_GET, $_POST, ... after App is created in demos/testing
mvorisek Sep 26, 2023
f6faa97
fix phpstan
mvorisek Sep 30, 2023
78ad102
fix $_COOKIE unset in demos
mvorisek Sep 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'develop'
mvorisek committed Sep 22, 2023
commit 25e795093416ccd35e4a66a5d6bb3933d59ca0f1

This merge commit was added into this branch cleanly.

There are no new changes to show, but you can still view the diff.