Skip to content

Commit 300e30d

Browse files
committed
docs: simplify example
1 parent 1d19b19 commit 300e30d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -188,20 +188,18 @@ To support this, each entity can declare its dependencies using the `dependencie
188188
```php
189189
<?php
190190

191-
class RecentHighValueOrdersView extends View
191+
class RecentOrdersView extends View
192192
{
193193
#[Override]
194194
public function dependencies(): array
195195
{
196-
return [
197-
HighValueOrdersView::class,
198-
];
196+
return [OrdersView::class];
199197
}
200198
}
201199
```
202200

203201
The manager will ensure that dependencies are created in the correct order, using a topological sort behind the scenes.
204-
In the example above, `HighValueOrdersView` will be created before `RecentHighValueOrdersView` automatically.
202+
In the example above, `OrdersView` will be created before `RecentOrdersView` automatically.
205203

206204
#### 📑 View
207205

0 commit comments

Comments
 (0)