stable
Clone or download
Read-only
request #11153 Introduce front controller pattern
Rely on FastRoute to introduce front controller pattern. This is demonstrated for 2 routes. One for core /projects/... and one from plugins /plugins/userlog/... You will need to redeploy nginx config to test this patch. Change-Id: Ie67a78bb3a0eed78a3121b127168a46d9547fa0f
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/userlog/etc/nginx18/userlog.conf | +11 | −0 | Go to diff View file |
M | plugins/userlog/include/userlogPlugin.class.php | +12 | −2 | Go to diff View file |
D | plugins/userlog/www/index.php | +0 | −36 | Go to diff View file |
M | site-content/fr_FR/LC_MESSAGES/tuleap-core.po | +14 | −0 | Go to diff View file |
M | site-content/tuleap-core.pot | +11 | −0 | Go to diff View file |
A | src/common/Request/CollectRoutesEvent.php | +44 | −0 | Go to diff View file |
A | src/common/Request/Dispatchable.php | +33 | −0 | Go to diff View file |
A | src/common/Request/FrontRouter.php | +63 | −0 | Go to diff View file |
M | src/common/autoload.php | +6 | −2 | Go to diff View file |
M | src/common/include/URLVerification.class.php | +1 | −2 | Go to diff View file |
M | src/common/layout/BaseLayout.php | +21 | −0 | Go to diff View file |
A | src/common/project/Home.php | +168 | −0 | Go to diff View file |
M | src/composer.json | +3 | −2 | Go to diff View file |
M | src/composer.lock | +65 | −18 | Go to diff View file |
M | src/etc/nginx18/tuleap.d/03-locations.conf | +5 | −4 | Go to diff View file |
A | src/templates/common/http_error.mustache | +26 | −0 | Go to diff View file |
M | src/www/index.php | +33 | −10 | Go to diff View file |
D | src/www/projects.php | +0 | −157 | Go to diff View file |
A | tests/phpunit/common/Include/URLVerificationRestrictedUserTest.php | +58 | −0 | Go to diff View file |