Closed fadrian06 closed 5 months ago
Dispatcher::run(...)
// run pre filters // ... // run requested method // ... // run post filters // ...
$this->runPreFilters(...); $this->runEvent(...); $this->runPostFilters(...);
$event = $this->events->get($eventName); // Events::__invoke() will call pre filters and post filters return $event(...$params);
If you accept this refactor, please
Events::class
Filters::class
Before:
Dispatcher::run(...)
After
Next refactor I want that it will be: