Closed fadrian06 closed 5 months ago
It works on my machine :D
I will test it :)
I guess there are no tests for that case.
Meanwhile Flight give PSR-11 support, cannot call an instance method statically when class require constructor parameters
With the release of Notice and the features added to Dispatcher, flight could move to 3.4.0
Dispatcher::set
method chaining,$dispatcher->set(...)->set(...);
.Dispatcher::hook
method chaining,$dispatcher->hook(...)->hook(...);
.Dispatcher::FILTER_BEFORE
andDispatcher::FILTER_AFTER
constants.$dispatcher->set('method1')->set('method1')
now throws an E_USER_NOTICE.Dispatcher::execute
accept calls to instance methods statically.Dispatcher::execute(['MyController', 'create']); Dispatcher::execute(['MyController', 'index'); // Both callables now are valid if MyController doesn't receive constructor params.