Austin Collier
54403bede8
One last test to make sure Dice maintains the same instance
11 months ago
Austin Collier
1b6c5b942b
refactored some errors. UI Tests and cleanup.
11 months ago
Austin Collier
dbf05ebf40
Lots more tests. Now will dynamically create object with engine instance.
11 months ago
Austin Collier
f752073f7d
more testing and catching things.
11 months ago
Austin Collier
3f887e305f
Added more tests. Captured callable exception thrown
11 months ago
Austin Collier
f610adfc14
lots more testing around containers
11 months ago
n0nag0n
6d41115e9a
initial commit for containerization
11 months ago
Austin Collier
1d810b6c78
fixed leftover variable
12 months ago
Austin Collier
9c437d97c8
Merge branch 'master' into fix-dispatcher-error-message
12 months ago
Austin Collier
fe46e25d0e
removed notice on setting error messages
12 months ago
fadrian06
327d043709
Separated Dispatcher::run in runPreFilters(), runEvent() and runPostFilters()
12 months ago
fadrian06
b2d7164be0
Better Dispatcher documentation
12 months ago
fadrian06
6e29e663ee
Added Exception for call instance methods when a Class constructor require parameters
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
aeb8911038
Improved docblocks
1 year ago
n0nag0n
df90d69787
so many phpcs fixes. No more, no more!
1 year ago
fadrian06
7015e5d3ba
Moved copyright and license to a public place :D
1 year ago
fadrian06
44a056ca30
Fixed phpcs format problems in the rest of Flight modules
1 year ago
Austin Collier
cc4338a34b
added PSR12 coding style to files.
1 year ago
fadrian06
c054e1430d
Fixed docblocks in Dispatcher::class
1 year ago
n0nag0n
1e4c07da52
correct unit test and removed final keywords
1 year ago
n0nag0n
c98d6ce7d4
Lots of tweaks for middleware. Cleaned up old code.
1 year ago
n0nag0n
e36e9024c6
100% Coverage Dispatcher Class
1 year ago
fadrian06
fbcc9108c2
DocBlocks improved
1 year ago
Masroor Ehsan
d3feb77ce9
fixed parameter types
4 years ago
Masroor Ehsan
04e471bf46
PHP ^7.4|^8.0 compatibility
4 years ago
Alex Shadie
d3067e5eae
Some improvements for PHPdoc
7 years ago
Uriy Efremochkin
cc72d9a081
Code style fix
7 years ago
Mike Cao
ec24d78602
Allow static methods to be called using a string.
9 years ago
Mike Cao
001c8ec301
Fixed error with calling stop method.
11 years ago
Mike Cao
6696c0d267
Dispatcher should check for valid callback.
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
13543f696b
Made event parameters optional
12 years ago
Mike Cao
f2bd6f4e02
Allow framework to be reinitialized
12 years ago
Mike Cao
cec890c585
Code cleanup
12 years ago
Bag
b8dc7ae4f3
Add support for calling methods on object instance's.
...
Allows users to pass an instance of a class in to the Flight routes function, and invoke methods on it in a non-static context.
Example usage:
$obj = new Obj();
Flight::route('/myMethod', array($obj,'myMethod'));
13 years ago
Mike Cao
830088733d
Fixed PHP notices
13 years ago
Mike Cao
67ad454592
Fixed reference error
13 years ago
Mike Cao
5d789ceb2e
More refactoring, updated documenation
13 years ago
Mike Cao
e2f1dc99bb
Major refactoring, implemented namespaces
13 years ago