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
12 months ago
fadrian06
afba9c16a0
Fixed https://github.com/flightphp/core/pull/538#pullrequestreview-1861099821
12 months ago
fadrian06
db02086d21
Improved Dispatcher::set docblock
12 months ago
fadrian06
31c690d17b
Dispatcher::reset now is also chaineable
12 months ago
fadrian06
cd79dc92b6
Can execute instance methods statically (useful for Controllers)
12 months ago
fadrian06
a15a82a209
It throws an Exception for invalid Filters array
12 months ago
fadrian06
72c50d4cb5
Throws an E_USER_NOTICE for invalid filter type
12 months ago
fadrian06
71a01c3711
Improved error reporting in Dispatcher
12 months ago
fadrian06
631d4a26c2
Added method chaining Dispatcher::hook and FILTER_TYPES consts
12 months ago
fadrian06
e35fc32a97
Chaining method definitions in Dispatcher::set()
12 months ago
fadrian06
aeb8911038
Improved docblocks
12 months 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
751f17be0d
Fixed conflicting typehint in Loader::class
1 year ago
fadrian06
03b7a5fd29
Added typehints to Loader::class
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
Austin Collier
a5f2a5e771
Unit tests and such
1 year ago
n0nag0n
9a007c5216
100% Coverage for core Classes
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
b30d5e5fa2
Moved map method check to Engine. Added get method to Loader. Added new tests.
8 years ago
Mike Cao
ec24d78602
Allow static methods to be called using a string.
9 years ago
Mike Cao
b9b2d0fa2d
Added ability to register callbacks for class instantiation.
11 years ago
Mike Cao
6b6397764d
Use array in str_replace call.
11 years ago
Mike Cao
fdb88e842a
Fixed documentation.
11 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
7e1a098f6c
Autoloader should not throw exceptions.
12 years ago
Mike Cao
1acb68756c
Remove duplicates from loader directories.
12 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
Mike Cao
1d84913d7f
Removed error filtering and fixed notice errors.
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
ef251c818d
Removed obsolete call
13 years ago
Mike Cao
830088733d
Fixed PHP notices
13 years ago