Austin Collier
cc4338a34b
added PSR12 coding style to files.
1 year ago
fadrian06
875d25f308
Remove unused docblocks in Router::class
1 year ago
n0nag0n
593e1ee9bc
phpstan cleanup
1 year ago
n0nag0n
bef92303d7
Merge pull request #514 from flightphp/middleware
...
Middleware code
1 year ago
n0nag0n
b388a26765
fixed alias issue, levenshtein recommendations and coverage-check
1 year ago
Austin Collier
f543d74bfe
Middleware code
1 year ago
Austin Collier
74d2fd7002
Fixes for group routing
1 year ago
n0nag0n
7991530761
Route alias and phpstan updates
1 year ago
Austin Collier
65b3d5445f
Lots more unit testing for group based routing
1 year ago
Austin Collier
12073629cc
added ability to group routes together
1 year ago
fadrian06
fbcc9108c2
DocBlocks improved
1 year ago
Masroor Ehsan
5b8e743e3d
refactorings
4 years ago
Masroor Ehsan
04e471bf46
PHP ^7.4|^8.0 compatibility
4 years ago
pluveto
ddb806a604
Trim url pattern
...
This helps support whitespaces between METHOD and URL:
```php
Flight::route('GET /auth/nonce', array($apiAuth, 'getNonce')); // `GET[space][space]/auth/nonce`
Flight::route('POST /auth/login/email', array($apiAuth, 'loginByEmail'));
```
5 years ago
Delyan Angelov
0daa3f81b5
Allow cyrillic letters in the routes, by matching the result of urldecode over the URL .
6 years ago
Mike Cao
6aea7394c4
Remove $route from parameter list, only pass when dispatching callback.
8 years ago
Mike Cao
7fd3594ac7
Added ability to perform case sensitive matching of URLs.
9 years ago
maks feltrin
bcb5b120a9
Update Router.php
11 years ago
Mike Cao
d84e51ba47
Updated route object passing functionality.
...
Before the route object would automatically be passed to all callbacks. Now you need to explicitly
ask for it by passing in true as the third parameter in Flight::route().
11 years ago
Mike Cao
84078158c3
Introduced new Engine class.
...
Core functionality has been moved to a namespaced Engine class. The
existing Flight class is now just a static pass-through to the Engine class.
Also fixed autoloading and initialization issues.
12 years ago
Mike Cao
28ae5e0aec
Added route passing functionality.
12 years ago
Mike Cao
4cf069a552
Minor code changes.
12 years ago
Mike Cao
65807a1f29
Parse optional parameters before regex.
12 years ago
Mike Cao
1ba8770da7
Added matched regex property.
12 years ago
Mike Cao
61ce37ca64
Updated router pattern matching.
12 years ago
Mike Cao
cec890c585
Code cleanup
12 years ago
Mike Cao
d081879379
Parameters should be URL decoded.
12 years ago
Mike Cao
4f48bd36be
Fixed problem regexes in optional parameters
12 years ago
Mike Cao
257d0650d3
Added support for optional route parameters
12 years ago
Mike Cao
830088733d
Fixed PHP notices
13 years ago
Mike Cao
5d789ceb2e
More refactoring, updated documenation
13 years ago
Mike Cao
e2f1dc99bb
Major refactoring, implemented namespaces
13 years ago