Skip to content

Commit

Permalink
Update docs (#19)
Browse files Browse the repository at this point in the history
* 1. Add `RequestUtils` and `ResponseUtils`.
2. Add cache feature for `RouteMetadata`

* Update docs
  • Loading branch information
Moln authored Aug 27, 2023
1 parent c09d8bd commit 63d3fcb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 ZFEgg
Copyright (c) 2023 ZFEgg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ return [
// Add scan controllers paths
\Zfegg\PsrMvc\Routing\RouteMetadata::class => [
'paths' => ['path/to/Controller'],
'cacheFile' => 'data/cache/route-meta.php', // For cache routes
]
];

Expand Down Expand Up @@ -472,4 +473,4 @@ return [
],
],
];
```
```
1 change: 1 addition & 0 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ return [
// 添加扫描控制器目录
RouteMetadata::class => [
'paths' => ['path/to/Controller'],
'cacheFile' => 'data/cache/route-meta.php', // 缓存注解路由配置
]
];

Expand Down

0 comments on commit 63d3fcb

Please sign in to comment.