Commit Graph

494 Commits (1a8af5c96be341143815cc913dc90128771e9599)

Author SHA1 Message Date
fadrian06 1a8af5c96b Merge branch 'master' into dispatcher-rework
3 days ago
n0nag0n 5372672332
Merge pull request #722 from flightphp/eventdispatcher-rework
1 week ago
fadrian06 cd3d8bb44e simplify EventDispatcher@removeAllListeners and resetInstance
2 weeks ago
fadrian06 4cb50f66ab simplify EventDispatcher@removeListener
2 weeks ago
fadrian06 6c22bad3f0 remove redundant explanation of EventDispatcher@getAllRegisteredEvents
2 weeks ago
fadrian06 361e45e974 simplify EventDispatcher@getListeners
2 weeks ago
fadrian06 4abcd23e11 use EventDispatcher@hasListeners in trigger
2 weeks ago
fadrian06 6bc62d9b0c simplify EventDispatcher@hasListeners
2 weeks ago
fadrian06 0d50ed97d6 use early returns in EventDispatcher@trigger
2 weeks ago
fadrian06 f7b2736736 simplify EventDispatcher@trigger
2 weeks ago
fadrian06 3723228c3d simplify EventDispatcher@on
2 weeks ago
fadrian06 8d29ad4fd0 remove reduntant EventDispatcher@getInstance description
2 weeks ago
fadrian06 3066c5dcc4 simplify EventDispatcher listeners typehint
2 weeks ago
fadrian06 4c2a08c3e6 remove reduntant EventDispatcher::$instance description
2 weeks ago
fadrian06 7482506270 remove EngineTemplate
2 weeks ago
fadrian06 17ed78763f add more @template
2 weeks ago
fadrian06 8e168e648b remove unused $container
2 weeks ago
fadrian06 cfa87bee4e remove unneccesary references
2 weeks ago
fadrian06 e48b976aac fix phpstan message about Dispatcher@get return type
2 weeks ago
fadrian06 bdd5bdcc24 fix Dispatcher@get return type
2 weeks ago
fadrian06 05831b39cb use always global namespace prefix
2 weeks ago
fadrian06 6afe25ddb5 simplify object creation without container
2 weeks ago
fadrian06 9e08573896 rename Dispatcher namedFilteredCallables -> namedCallables
2 weeks ago
fadrian06 cbc1cb30be refactor Dispatcher@execute
2 weeks ago
fadrian06 4afb553a96 simplify Dispatcher@mustUseContainer
2 weeks ago
fadrian06 35a6bbabed update Dispatcher@fixOutputBuffering description
2 weeks ago
fadrian06 740524490f extract Dispatcher::CALLABLE_STRING_OPERATORS
2 weeks ago
fadrian06 ddb57620a0 add default template values in FilteredCallable
2 weeks ago
fadrian06 b0203d861c deprecate Dispatcher@runPreFilters, runEvent, runPostFilters and filter.
2 weeks ago
fadrian06 80705ec158 update Dispatcher@run, set, get, has, hook, clear and reset to use the namedFilteredCallable property
2 weeks ago
fadrian06 2d772f3642 update Dispatcher description
2 weeks ago
fadrian06 2673435197 update before and filters signature
2 weeks ago
fadrian06 5ea5d5b8ad add Dispatcher namedFilteredCallables property
2 weeks ago
fadrian06 2682e3298f add FilteredCallable to replace Dispatcher events to named callables (self explanatory).
2 weeks ago
fadrian06 bb6932e92e throw OutOfBoundsException instead of Exception when event name hasn't been set
2 weeks ago
fadrian06 bf3f86d619 reuse Dispatcher@get in Dispatcher@has
2 weeks ago
fadrian06 7379be00ac simplify Dispatcher events values typehint
2 weeks ago
fadrian06 318852b19b deprecate Dispatcher filters property
2 weeks ago
fadrian06 1ae2bafeee deprecate Dispatcher events property
2 weeks ago
fadrian06 7beabae36d improve Dispatcher description to reflect its responsibility for dispatching named callables
2 weeks ago
fadrian06 188f147c7d invert Dispatcher@setContainerHandler conditional and remove $containerFQCN
2 weeks ago
fadrian06 5c89341428 clarify Dispatcher@run parameters and allows to throw errors inside events or filters
2 weeks ago
fadrian06 988c64ed22 rename $containerInterfaceNS -> $containerFQCN and extract InvalidArgumentException $message argument
2 weeks ago
fadrian06 0b0737f533 remove $this of return type, it's incompatible with self return type
2 weeks ago
fadrian06 8a4818cf87 improve typehint of keys before and after inside all events in the Dispatcher $filters property
2 weeks ago
fadrian06 ae735c1845 remove Dispatcher properties redundants explanations
2 weeks ago
fadrian06 12607d9500 rename Psr\Container\ContainerInterface -> Container
2 weeks ago
fadrian06 6c5d9de3ca remove Engine @template
2 weeks ago
fadrian06 32ff66428d use raw copyright links for compatibility
2 weeks ago
fadrian06 cff442d964 normalize and simplify @copyright and @license phpdoc tags based on phpDocumentor recommendations to clean symbols hovers
2 weeks ago