Commit Graph

377 Commits (master)

Author SHA1 Message Date
fadrian06 253c86482e Fixed yoda comparisons
1 year ago
n0nag0n 2439f20d27 corrected spacing
1 year ago
n0nag0n d8aa490dbd fix for JSON in v3 output buffering
1 year ago
fadrian06 3fba60ca7f Apply some fixes of phpcs
1 year ago
fadrian06 4d064cbb6d Applied phpcbf
1 year ago
n0nag0n 4d4c0d5420 added helpers to req/resp and cleaned up phpcs/stan errors
1 year ago
n0nag0n a60a31c4bd added constant
1 year ago
n0nag0n e29f3b5533 snakeCased parameter, and added v2 unit testing behaviors
1 year ago
n0nag0n e696bd9135 removed unnecessary code
1 year ago
n0nag0n feee086e2b initial commit to overhaul output buffering
1 year ago
Austin Collier 1d810b6c78 fixed leftover variable
1 year ago
Austin Collier 9c437d97c8 Merge branch 'master' into fix-dispatcher-error-message
1 year ago
Austin Collier fe46e25d0e removed notice on setting error messages
1 year ago
fadrian06 327d043709 Separated Dispatcher::run in runPreFilters(), runEvent() and runPostFilters()
1 year ago
fadrian06 b2d7164be0 Better Dispatcher documentation
1 year ago
fadrian06 72882b24de Without parentheses, it was interpreting Closure(): (void|mixed|callable)
1 year ago
fadrian06 84dbed0dc0 What's sense of using phpcs with ignored rules :\
1 year ago
Austin Collier 660a642e8a fixed bug with grouped routes
1 year ago
fadrian06 6e29e663ee Added Exception for call instance methods when a Class constructor require parameters
1 year ago
fadrian06 afba9c16a0 Fixed https://github.com/flightphp/core/pull/538#pullrequestreview-1861099821
1 year ago
fadrian06 db02086d21 Improved Dispatcher::set docblock
1 year ago
fadrian06 31c690d17b Dispatcher::reset now is also chaineable
1 year ago
fadrian06 cd79dc92b6 Can execute instance methods statically (useful for Controllers)
1 year ago
fadrian06 a15a82a209 It throws an Exception for invalid Filters array
1 year ago
fadrian06 72c50d4cb5 Throws an E_USER_NOTICE for invalid filter type
1 year ago
fadrian06 71a01c3711 Improved error reporting in Dispatcher
1 year ago
fadrian06 631d4a26c2 Added method chaining Dispatcher::hook and FILTER_TYPES consts
1 year ago
fadrian06 e35fc32a97 Chaining method definitions in Dispatcher::set()
1 year ago
fadrian06 28b6c99561 Improved docblocks in Engine class
1 year ago
fadrian06 aeb8911038 Improved docblocks
1 year ago
Austin Collier 4c60454fa0 beautified
1 year ago
Austin Collier aaf6a44a2c fixed bug with root alias
1 year ago
n0nag0n df90d69787 so many phpcs fixes. No more, no more!
1 year ago
n0nag0n ff6fa74d51 Merge branch 'master' into easier-access-to-request-headers
1 year ago
n0nag0n 2db95a0d7b added getHeaders()
1 year ago
n0nag0n 537ea032d8 request header shortcut and lots of unit test fixes for phpcs
1 year ago
fadrian06 7015e5d3ba Moved copyright and license to a public place :D
1 year ago
fadrian06 f8a3b841cf Flight and Engine docblocks refactored
1 year ago
fadrian06 84877b34f4
Merge pull request #530 from flightphp/async-related
1 year ago
fadrian06 eba7e7e7ce Parameters renamed to simplify docblock
1 year ago
fadrian06 44a056ca30 Fixed phpcs format problems in the rest of Flight modules
1 year ago
fadrian06 def0e65965 Solved Engine::class phpcs problems
1 year ago
Austin Collier c6754dfe59 added some methods to help with async frameworks
1 year ago
Austin Collier cc4338a34b added PSR12 coding style to files.
1 year ago
fadrian06 751f17be0d Fixed conflicting typehint in Loader::class
1 year ago
fadrian06 13fd2eb96a Removed unused docblocks in Collection::class
1 year ago
fadrian06 03b7a5fd29 Added typehints to Loader::class
1 year ago
fadrian06 c054e1430d Fixed docblocks in Dispatcher::class
1 year ago
fadrian06 875d25f308 Remove unused docblocks in Router::class
1 year ago
fadrian06 7dd251a3bd Removed unused docblocks in Route::class
1 year ago
fadrian06 4744d6435d Removed unused docblocks in Response::class
1 year ago
fadrian06 2d6079c177 Added typehints to Request::class
1 year ago
fadrian06 b426e42e4f Added typehints to View::class
1 year ago
n0nag0n 1e4c07da52 correct unit test and removed final keywords
1 year ago
n0nag0n 8d20c002c8 Added double quotes to etag to match standards
1 year ago
n0nag0n 593e1ee9bc phpstan cleanup
1 year ago
n0nag0n 83d33348e0 old array syntax cleanup and legacy json serializable removal
1 year ago
n0nag0n 2d4c7d4bcd a few cleanup comments
1 year ago
n0nag0n a42cbfe13c
Merge pull request #515 from flightphp/dev
1 year ago
fadrian06 193cf9bb8b Removed type hints to PHP 5 compatibility
1 year ago
n0nag0n bef92303d7
Merge pull request #514 from flightphp/middleware
1 year ago
n0nag0n c98d6ce7d4 Lots of tweaks for middleware. Cleaned up old code.
1 year ago
n0nag0n b388a26765 fixed alias issue, levenshtein recommendations and coverage-check
1 year ago
fadrian06 147c42449d Added PHP Type hints to View class
1 year ago
fadrian06 7ac12b7891 Removed repeated code
1 year ago
fadrian06 dc5f1a9c08 Engine::_getUrl() docblock fixed
1 year ago
fadrian06 9cd5b9dc0d Fixed windows directory separator compatibility
1 year ago
Austin Collier f543d74bfe Middleware code
1 year ago
Austin Collier c7a143db04 fixed issue with multiline possibilities in url query
1 year ago
Austin Collier 8bd7fd035b fixed params with numbers
1 year ago
Austin Collier 74d2fd7002 Fixes for group routing
1 year ago
Austin Collier 387f15bd8b fixed optional params with aliasing
1 year ago
n0nag0n fd4ce43c44 added route alias to engine/flight
1 year ago
n0nag0n 7991530761 Route alias and phpstan updates
1 year ago
n0nag0n ceeab06e45
Merge pull request #505 from flightphp/database-class
1 year ago
Austin Collier a5f2a5e771 Unit tests and such
1 year ago
Austin Collier 2948308898 Documentation and Pdo Wrapper
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
Austin Collier 2c2b28af95 100% code coverage everywhere now
1 year ago
n0nag0n bf2075245e Got it to 90% coverage with some windows fixes
1 year ago
n0nag0n d075fc8be6 100% View class coverage
1 year ago
n0nag0n 9a007c5216 100% Coverage for core Classes
1 year ago
n0nag0n e36e9024c6 100% Coverage Dispatcher Class
1 year ago
n0nag0n 978a05d765 Flight class 100% coverage (too easy!)
1 year ago
n0nag0n 7b15d2cfca 100% coverage for net classes
1 year ago
n0nag0n a416bfe19b 100% coverage for Request and Route
1 year ago
n0nag0n 0d026b16d1 added test for unique subdir setup in request
1 year ago
n0nag0n 5880579045
Merge pull request #3 from saschanos/type-fix
1 year ago
fadrian06 42ec161d8a Added code format
1 year ago
fadrian06 fbcc9108c2 DocBlocks improved
1 year ago
Sascha Nos c929626fc6 fix wrong type return
2 years ago
Mike Cao a130231646
Merge pull request #456 from jamalo/master
3 years ago
Mike Cao fc43bfb4ea
Update flight/net/Request.php
3 years ago
Michal Hybner 21a0c55375 Fix JSON request with empty body
3 years ago
Jamal d2a92aa808 Fix PHP 8.1: Assign string to int propety
3 years ago
Masroor Ehsan 83fd1e75a2 Added ReturnTypeWillChange attribute to Collection class methods
3 years ago
Masroor Ehsan dd73a61c32 FIX: Typed property flight\net\Response::$body must not be accessed before initialization
3 years ago
Masroor Ehsan b7abb4945f check for valid json input
4 years ago
Masroor Ehsan a2c5dd5ede minor refactorings
4 years ago
Masroor Ehsan 5b8e743e3d refactorings
4 years ago
Masroor Ehsan d3feb77ce9 fixed parameter types
4 years ago
Masroor Ehsan 04e471bf46 PHP ^7.4|^8.0 compatibility
4 years ago
Mike Cao bc5e03ca59
Merge pull request #395 from merkuriy/JsonSerializableCollection
4 years ago
Mike Cao b6429d2a3c
Merge pull request #433 from juneszh/master
4 years ago
juneszh ed9bbed287
add content_length configuration
4 years ago
juneszh c649964d95
add content_length configuration
4 years ago
Mike Cao b3120f8db2
Merge pull request #409 from pluveto/patch-1
5 years ago
pluveto ddb806a604
Trim url pattern
5 years ago
Andreas Kugel 0145f629d3
Enable DELETE method to receive request body
5 years ago
Mike Cao da8eaefc63
Merge pull request #398 from hlidotbe/feature/request-host
6 years ago
Hugues Lismonde b4c9c42b00
Add host to request
6 years ago
Hugues Lismonde e0dfb7406d
Fix request schem
6 years ago
Uriy @MerkUriy Efremochkin ceb1b5bb89 Added JsonSerializable for util/Collection and added LegacyJsonSerializable for PHP <5.4.0.
6 years ago
Delyan Angelov 0daa3f81b5 Allow cyrillic letters in the routes, by matching the result of urldecode over the URL .
6 years ago
Alex Shadie e25f023d43 Fixed exception catching (php < 7)
7 years ago
Alex Shadie d3067e5eae Some improvements for PHPdoc
7 years ago
jqs ccf4858573 Removed extraneous ->write($url) call on redirect that was causing Safari to bugger out qwhen using HTTP2, which it tends to handle more strictly.
7 years ago
Uriy Efremochkin cc72d9a081
Code style fix
7 years ago
Uriy Efremochkin 4841466656
Fix for Doc
7 years ago
kouts 98c105d009 Update Engine.php
8 years ago
kouts 53f0c1671d Update Engine.php
8 years ago
Mike Cao e146b8c0dd Prevent response from sending more than once.
8 years ago
Mike Cao 5b4916d4e3 Fix conflict with external error handlers.
8 years ago
Mike Cao 7ae2011723 Sending response should not exit to allow pre-stop filters.
8 years ago
Mike Cao 1c8d06cc42 Response content-length header should use mbstring if available.
8 years ago
Yassine Addi a0d749276f Fix redirect method due to a mistake removing backslashes
9 years ago
Mike Cao c3c6f68909 Removed another case of $route passing. Updated tests.
9 years ago
Mike Cao 6aea7394c4 Remove $route from parameter list, only pass when dispatching callback.
9 years ago
Mike Cao 9c8d492799 Removed JSON encode depth parameter to keep PHP 5.3 compatibility.
9 years ago
Mike Cao b30d5e5fa2 Moved map method check to Engine. Added get method to Loader. Added new tests.
9 years ago
Shane Armstrong a9ced778ee #203 - Executing an unmapped method within the engine dispatcher now throws an Exception, clarified the return class of Flight::app()
9 years ago
Shane Armstrong b7b929bf99 #290 - JSON methods now support encode option/depth, added missing arguments to json/jsonp method documentation, _json/_jsonp methods now list arguments on individual lines to remain PSR-2 compliant
9 years ago
Mike Cao ec24d78602 Allow static methods to be called using a string.
9 years ago
susuper bf7b6d6431 Changed Last-Modified HTTP header format
9 years ago
Mike Cao f3fa0513fe Updated error handling for PHP 7.
9 years ago
Mike Cao b96aaa7967 Added charset option for JSON requests.
9 years ago
Yuri Tkachenko d191ca821e fix namespace ref
9 years ago
Yuri Tkachenko 561542f068 Redirects > Request & Response
9 years ago
Yuri Tkachenko 6242b54edb added request(), response(), router(), view() @method reference to
9 years ago
Mike Cao b9dfda3fd6 Do not send a new response for json requests.
9 years ago
Mike Cao cabbb25fcc Added support for custom template file extensions.
9 years ago
Mike Cao 7fd3594ac7 Added ability to perform case sensitive matching of URLs.
10 years ago
Mike Cao 1feeb95ff2 Encode reserved @ character in URLs.
10 years ago
Mike Cao 486ec7c689 Application now initialized in Flight::app() instead of __callStatic.
10 years ago
Edward Brosens afbf306336 add getter for protected headers property
10 years ago
Yuriy Tkachenko b187f3564f Correct PHPDoc for phpStorm
10 years ago
Seth Battin bb11ca47bc include pragma='no-cache' in the cache header reset
10 years ago
Mike Cao 10750b5ce3 getBody should check for PATCH method.
10 years ago
Mike Cao a32f2c2087 getMethod should return uppercase string.
10 years ago