flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.61k stars 407 forks source link

Dispatcher improvements. #538

Closed fadrian06 closed 5 months ago

fadrian06 commented 5 months ago

Dispatcher::execute(['MyController', 'create']); Dispatcher::execute(['MyController', 'index'); // Both callables now are valid if MyController doesn't receive constructor params.

krmu commented 5 months ago

It works on my machine :D

I will test it :)

fadrian06 commented 5 months ago

I guess there are no tests for that case.

fadrian06 commented 5 months ago

Meanwhile Flight give PSR-11 support, cannot call an instance method statically when class require constructor parameters

fadrian06 commented 5 months ago

With the release of Notice and the features added to Dispatcher, flight could move to 3.4.0