Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafasy authored Sep 7, 2023
1 parent b61bc8f commit 6a09dff
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,45 @@ you have to execute sql schema: [doctrine-sql-Schema]

---

## Route Colloctor

It will collect the Route Informations.
we can add the collectors to config as the following:
```
'collectors' => [
RouteCollector::class,
],
```
Example of Route config:

```
'routes' => [
[
'path' => '/path/to/match',
'middleware' => 'Middleware service or pipeline',
'allowed_methods' => ['GET', 'POST', 'PATCH'],
'name' => 'route.name',
'options' => [
'stuff' => 'to',
'pass' => 'to',
'the' => 'underlying router',
],
],
'another.route.name' => [
'path' => '/another/path/to/match',
'middleware' => 'Middleware service or pipeline',
'allowed_methods' => ['GET', 'POST'],
'options' => [
'more' => 'router',
'options' => 'here',
],
],
],
```
---

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes and [CONTRIBUTING](CONTRIBUTING.md) for contributing details.

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.
Expand Down

0 comments on commit 6a09dff

Please sign in to comment.