Commit Graph

157 Commits (386bdc16a73f6e4e0134b9dffa0ba18dc59dd6a9)

Author SHA1 Message Date
fadrian06 2673435197 update before and filters signature
3 weeks ago
fadrian06 5ea5d5b8ad add Dispatcher namedFilteredCallables property
3 weeks ago
fadrian06 2682e3298f add FilteredCallable to replace Dispatcher events to named callables (self explanatory).
3 weeks ago
fadrian06 bb6932e92e throw OutOfBoundsException instead of Exception when event name hasn't been set
3 weeks ago
fadrian06 bf3f86d619 reuse Dispatcher@get in Dispatcher@has
3 weeks ago
fadrian06 7379be00ac simplify Dispatcher events values typehint
3 weeks ago
fadrian06 318852b19b deprecate Dispatcher filters property
3 weeks ago
fadrian06 1ae2bafeee deprecate Dispatcher events property
3 weeks ago
fadrian06 7beabae36d improve Dispatcher description to reflect its responsibility for dispatching named callables
3 weeks ago
fadrian06 188f147c7d invert Dispatcher@setContainerHandler conditional and remove $containerFQCN
4 weeks ago
fadrian06 5c89341428 clarify Dispatcher@run parameters and allows to throw errors inside events or filters
4 weeks ago
fadrian06 988c64ed22 rename $containerInterfaceNS -> $containerFQCN and extract InvalidArgumentException $message argument
4 weeks ago
fadrian06 0b0737f533 remove $this of return type, it's incompatible with self return type
4 weeks ago
fadrian06 8a4818cf87 improve typehint of keys before and after inside all events in the Dispatcher $filters property
4 weeks ago
fadrian06 ae735c1845 remove Dispatcher properties redundants explanations
4 weeks ago
fadrian06 12607d9500 rename Psr\Container\ContainerInterface -> Container
4 weeks ago
fadrian06 6c5d9de3ca remove Engine @template
4 weeks ago
fadrian06 32ff66428d use raw copyright links for compatibility
4 weeks ago
fadrian06 cff442d964 normalize and simplify @copyright and @license phpdoc tags based on phpDocumentor recommendations to clean symbols hovers
4 weeks ago
n0nag0n 98c9c89893 Align Runway generators with skeleton App\ layout and fix suite gates
1 month ago
fadrian06 db343815a3 normalize dirs
3 months ago
fadrian06 9aab65b7f6 fix Loader::register docblock
3 months ago
fadrian06 921c51a5d6 use is_iterable in Loader::register
3 months ago
fadrian06 b55540068e fix almost long lines phpcs warnings
6 months ago
fadrian06 29595ef9e1 composer exec phpcbf -- --standard=PSR2
6 months ago
n0nag0n 053227b3b0 adjusted phpstan linting to be friendlier and changed download() to also specify file name
11 months ago
n0nag0n 0abf1b9b16 fixed issues with php8-named-arguments
2 years ago
n0nag0n 22570b9987
Merge pull request #548 from flightphp/php8-named-arguments-support
2 years ago
n0nag0n a2c74ddadd added event cache check and tweaked middleware event
2 years ago
fadrian06 5425955dd7 fix php 7.4 invalid syntax
2 years ago
fadrian06 59c9c0330f improve ::registerContainerHandler docblock
2 years ago
fadrian06 8ccbd7ac9e support for containers that resolve automatically dependencies without adding explicitly
2 years ago
fadrian06 5068995d17 merge master
2 years ago
n0nag0n dd2d23ec99 added more events, added apm changes
2 years ago
n0nag0n 046a034455 prettified
2 years ago
n0nag0n 79efffc333 added stopPropagation logic
2 years ago
n0nag0n 4b7cd68e24 added an event system
2 years ago
n0nag0n f8811e1d8b allowed for middlewares to be created with container
2 years ago
fadrian06 414f605f67 More abstraction to Dispatcher::containerException typehint
2 years ago
fadrian06 8f3f6b5c74 Make explicit comparisons
2 years ago
fadrian06 99a7d75440 Removed PSR/Container
2 years ago
fadrian06 389ebfd329 Add PSR/Container dependency for type hint and expose the API
2 years ago
fadrian06 43b689fa6c Add Short After Filter Syntax with one parameter
2 years ago
fadrian06 4616f521cd Dispatcher refactor
2 years ago
fadrian06 d931b41b46 Improved docblocks
2 years ago
fadrian06 e322135d9c Add symfony/polyfill-80
2 years ago
Austin Collier 43300d5758 added ability to load classes with _ in them
2 years ago
Austin Collier 54403bede8 One last test to make sure Dice maintains the same instance
3 years ago
Austin Collier 1b6c5b942b refactored some errors. UI Tests and cleanup.
3 years ago
Austin Collier dbf05ebf40 Lots more tests. Now will dynamically create object with engine instance.
3 years ago
Austin Collier f752073f7d more testing and catching things.
3 years ago
Austin Collier 3f887e305f Added more tests. Captured callable exception thrown
3 years ago
Austin Collier f610adfc14 lots more testing around containers
3 years ago
n0nag0n 6d41115e9a initial commit for containerization
3 years ago
Austin Collier 1d810b6c78 fixed leftover variable
3 years ago
Austin Collier 9c437d97c8 Merge branch 'master' into fix-dispatcher-error-message
3 years ago
Austin Collier fe46e25d0e removed notice on setting error messages
3 years ago
fadrian06 327d043709 Separated Dispatcher::run in runPreFilters(), runEvent() and runPostFilters()
3 years ago
fadrian06 b2d7164be0 Better Dispatcher documentation
3 years ago
fadrian06 6e29e663ee Added Exception for call instance methods when a Class constructor require parameters
3 years ago
fadrian06 afba9c16a0 Fixed https://github.com/flightphp/core/pull/538#pullrequestreview-1861099821
3 years ago
fadrian06 db02086d21 Improved Dispatcher::set docblock
3 years ago
fadrian06 31c690d17b Dispatcher::reset now is also chaineable
3 years ago
fadrian06 cd79dc92b6 Can execute instance methods statically (useful for Controllers)
3 years ago
fadrian06 a15a82a209 It throws an Exception for invalid Filters array
3 years ago
fadrian06 72c50d4cb5 Throws an E_USER_NOTICE for invalid filter type
3 years ago
fadrian06 71a01c3711 Improved error reporting in Dispatcher
3 years ago
fadrian06 631d4a26c2 Added method chaining Dispatcher::hook and FILTER_TYPES consts
3 years ago
fadrian06 e35fc32a97 Chaining method definitions in Dispatcher::set()
3 years ago
fadrian06 aeb8911038 Improved docblocks
3 years ago
n0nag0n df90d69787 so many phpcs fixes. No more, no more!
3 years ago
fadrian06 7015e5d3ba Moved copyright and license to a public place :D
3 years ago
fadrian06 44a056ca30 Fixed phpcs format problems in the rest of Flight modules
3 years ago
Austin Collier cc4338a34b added PSR12 coding style to files.
3 years ago
fadrian06 751f17be0d Fixed conflicting typehint in Loader::class
3 years ago
fadrian06 03b7a5fd29 Added typehints to Loader::class
3 years ago
fadrian06 c054e1430d Fixed docblocks in Dispatcher::class
3 years ago
n0nag0n 1e4c07da52 correct unit test and removed final keywords
3 years ago
n0nag0n c98d6ce7d4 Lots of tweaks for middleware. Cleaned up old code.
3 years ago
Austin Collier a5f2a5e771 Unit tests and such
3 years ago
n0nag0n 9a007c5216 100% Coverage for core Classes
3 years ago
n0nag0n e36e9024c6 100% Coverage Dispatcher Class
3 years ago
fadrian06 fbcc9108c2 DocBlocks improved
3 years ago
Masroor Ehsan d3feb77ce9 fixed parameter types
5 years ago
Masroor Ehsan 04e471bf46 PHP ^7.4|^8.0 compatibility
5 years ago
Alex Shadie d3067e5eae Some improvements for PHPdoc
9 years ago
Uriy Efremochkin cc72d9a081
Code style fix
9 years ago
Mike Cao b30d5e5fa2 Moved map method check to Engine. Added get method to Loader. Added new tests.
10 years ago
Mike Cao ec24d78602 Allow static methods to be called using a string.
10 years ago
Mike Cao b9b2d0fa2d Added ability to register callbacks for class instantiation.
13 years ago
Mike Cao 6b6397764d Use array in str_replace call.
13 years ago
Mike Cao fdb88e842a Fixed documentation.
13 years ago
Mike Cao 001c8ec301 Fixed error with calling stop method.
13 years ago
Mike Cao 6696c0d267 Dispatcher should check for valid callback.
13 years ago
Mike Cao 7e1a098f6c Autoloader should not throw exceptions.
13 years ago
Mike Cao 1acb68756c Remove duplicates from loader directories.
13 years ago
Mike Cao 84078158c3 Introduced new Engine class.
13 years ago
Mike Cao 13543f696b Made event parameters optional
14 years ago
Mike Cao f2bd6f4e02 Allow framework to be reinitialized
14 years ago
Mike Cao cec890c585 Code cleanup
14 years ago