Releases: chevere/action
3.0.2
3.0.1
- Fix chevere/parameter version constrain
Full Changelog: 3.0.0...3.0.1
3.0.0
- Added support for PHP 8.5
- Added support for chevere/parameter 2.0
- Prioritize
acceptReturn()before attribute rules (#10) - Added static method
acceptParameters()(#9) - Added support for
int|float|stringonControllerInterface
Full Changelog: 2.0.1...3.0.0
This one was driven by the CLI we needed at Chevereto Cloud. It adds support for static rules that override attribute notation and extend controller for supporting any scalar type (previously only supported type string).
2.0.1
🎉 2.0.0
- Added
assertArgumentsmethod - Added
assertReturnmethod - Removed
mainmethod dependency in favor of__invokemethod - Improved
ActionInterfacenow with additional rules - Improved
ActionNameInterfacefeaturing arguments support - Improved documentation
Full Changelog: 1.1.1...2.0.0
This one is the result of the iteration in Chevereto (from 2022 onwards), Redacted project (2023) and Chevereto Cloud (2024, 2025).
I noticed the main() method was causing very annoying test experience by having to declare @method __invoke and it also made harder to understand language server level rules. Action 2.0 now uses __invoke, which exposes the I/O directly.
Development at chevere/http has been merged here concerning to the MiddlewareName logic which is now implemented by ActionName. Library chevere/router uses the concept of "ActionNames" to define static routing, which also help to shape this class.
Change main to __invoke:
// From
<public|protected> function main(...)
// To
public function __invoke(...)Change return() to acceptReturn():
// From
function return()
// To
function acceptReturn()1.1.2
- Added getReturnParameter function
Full Changelog: 1.1.1...1.1.2
1.1.1
- Improve ActionName
- Updated Sonarqube workflow
Full Changelog: 1.1.0...1.1.1
1.1.0
1.0.2
1.0.1
- Improved support for Actions returning union parameters (thanks @ramirovarandas)
Full Changelog: 1.0.0...1.0.1