- Php 8.2+ support added.
New features:
- Added universal/universal package.
- Added Pux/RouteRequest class for dispatching routes with request constraints.
- Added
Pux\Dispatchableinterface.
Incompatible changes:
- Renamed Executor => RouteExecutor
- Removed expand property
- Moved
Pux\ControllertoPux\Controller\Controller. - Moved mux expanding logics
expand()fromPux\ControllertoPux\Controller\ExpandableController.
Fixes:
- Fixed pattern compiler for post-separators. e.g.
/:year-:monthor/blog/:id(.:format) - Fixed action method annotation parser
Deprecation:
- Disabled
Mux->expandproperty to enhance submux dispatching.
- The controller method getActionMethods() now returns an associative array with "methodName" => [ annotation, meta ]
- The controller method getActionRoutes() now returns an indexed array for the [ "route path", {route options} ]
- Annotations from parent class methods are now parsed when calling
getActionMethodsorgetActionRoutes - When the child method has no annotation, we parse the parent method annotation for it. unless the child method has its own annotations.
- Add
pux_persistent_dispatchfunction for persistent dispatching. - Dispatch performance optimization, especially
__set_statemethod call, 1.5x faster than before.
- Fix dispatch rtrim bug for pure PHP version.
- phar file re-compiled.
- dispatch performance improvement.
__set_stateconstruction time improvement.- fix various bugs for zts (zend thread safe mode enabled)