Skip to content

Commit

Permalink
Update pending_route_transformers config
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Jan 20, 2022
1 parent 87f8a19 commit fc04d3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions config/route-discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
*
* In most cases, you shouldn't change these.
*/
'pending_route_transformers' => array_merge([

], Spatie\RouteDiscovery\Config::defaultRouteTransformers()),
'pending_route_transformers' => [
...Spatie\RouteDiscovery\Config::defaultRouteTransformers(),
//
],
];
7 changes: 4 additions & 3 deletions docs/advanced-usage/using-route-transformers.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ In the `route-discovery` config file you'll see the registered route transformer
*
* In most cases, you shouldn't change these.
*/
'pending_route_transformers' => array_merge([

], Spatie\RouteDiscovery\Config::defaultRouteTransformers()),
'pending_route_transformers' => [
...Spatie\RouteDiscovery\Config::defaultRouteTransformers(),
//
],
```

This is the returned value of `Spatie\RouteDiscovery\Config::defaultRouteTransformers()`:
Expand Down
7 changes: 4 additions & 3 deletions docs/installation-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ return [
*
* In most cases, you shouldn't change these.
*/
'pending_route_transformers' => array_merge([

], Spatie\RouteDiscovery\Config::defaultRouteTransformers()),
'pending_route_transformers' => [
...Spatie\RouteDiscovery\Config::defaultRouteTransformers(),
//
],
];
```

Expand Down

0 comments on commit fc04d3b

Please sign in to comment.