abbadon1334 / atk4-fastroute
描述
3.1.1
2022-02-04 15:48 UTC
Requires
- php: >=7.4 <8.2
- ext-json: *
- atk4/core: ~3.1.0
- laminas/laminas-diactoros: ~2.8.0
- nikic/fast-route: ~1.3.0
- xantios/mimey: ~v2.2.0
Requires (Dev)
- atk4/ui: ~3.1.0
- ergebnis/composer-normalize: ^2.13
- friendsofphp/php-cs-fixer: ^3.0
- guzzlehttp/guzzle: 7.4.1
- johnkary/phpunit-speedtrap: ^3.3
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpunit/phpunit: ^9.5.5
- symfony/console: ^4.4.30 || ^5.3.7
- symfony/process: ^5.4
- dev-master
- 3.1.1
- 3.1.0
- 2.4.1
- 2.4.0
- 2.3.5
- 2.2.0
- 2.0.4
- 2.0.0
- 1.1.1
- 1.1
- v1.0.0
- dev-renovate/packagist-laminas-laminas-diactoros-vulnerability
- dev-renovate/packagist-guzzlehttp-guzzle-vulnerability
- dev-renovate/phpunit-phpunit-11.x
- dev-renovate/release-drafter-release-drafter-6.x
- dev-renovate/codecov-codecov-action-4.x
- dev-renovate/actions-cache-4.x
- dev-renovate/php-8.x
- dev-renovate/major-symfony
- dev-renovate/actions-checkout-4.x
- dev-renovate/johnkary-phpunit-speedtrap-4.x
- dev-renovate/codecov-codecov-action-3.x
- dev-renovate/actions-cache-3.x
- dev-renovate/actions-checkout-3.x
- dev-release/3.1.1
- dev-add-on-route
- dev-fix-route-index
- dev-fix-multi-config
- dev-add-test-before-after
- dev-flintci-23553
This package is auto-updated.
Last update: 2024-09-06 08:04:03 UTC
README
ATK4与FastRoute集成
仍需进行
- 更多对模式路由的测试
- 带有额外参数的调用测试
- 检查是否可以简化
- 添加作为选项的翻译
- 添加路由的缩略形式
- 检查是否可以添加MiddlewareInterface
- 由模式执行(另一个路由器中的路由,通过路由匹配分发MW)?
- 按路由执行(在处理路由之前)?
- 添加公共方法的注释!!!
- 添加文档
实验性
定义路由
- RoutedCallable:作为Callable
- RoutedUI:作为atk4/ui/*类添加到应用中
- RoutedMethod:作为类方法调用,类似于控制器
路由可以作为数组序列化,以便从外部文件加载。
使用接口实现来定义类的行为和需求(如标志)
- iBeforeRoutable:请求方法OnBeforeRoute,将在OnRoute之前被调用(设置应用?)
- iAfterRoutable:请求方法OnAfterRoute,将在OnRoute之后被调用(设置其他元素?)
- iArrayable:具有fromArray和toArray以进行序列化
- iNeedAppRun:如果需要在路由方法调用后调用->app->run()
下一步
- 拥有路由集合,将来可以翻译