Skip to content

Commit

Permalink
Make it clearer that you can filter native collections (of arrays or …
Browse files Browse the repository at this point in the history
…objects)
  • Loading branch information
Kévin Gomez committed Oct 12, 2017
1 parent b536b14 commit cfccdda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ This guide will show you how to filter any kind of target using a simple languag

Here is a summary of what you will have to do:

* [instantiate the RulerZ engine](writing_rules.md#step-1-instantiate-the-rulerz-engine) ;
* [instantiate the RulerZ engine](writing_rules.md#step-1-instantiate-the-rulerz-engine)
and be sure to **include an instance of `\RulerZ\Target\Native\Native` to the
compilation targets** ;
* [write a rule](writing_rules.md#step-2-write-a-rule) ;
* [filter your target](#filter-your-target).

Expand All @@ -21,6 +23,9 @@ $users = [
];
```

**Note:** RulerZ will work the same way, whether you want to filter a collection
of arrays or a collection of objects.

## Filter your target

Let's say that we want to retrieve the female players having at least 30 points.
Expand Down
1 change: 1 addition & 0 deletions doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ composer require 'kphoen/rulerz'

## Cookbooks

* [Using native PHP arrays or objects](filter.md)
* [Using Doctrine ORM](cookbooks/doctrine_orm.md)
* [Using Pomm](cookbooks/pomm.md)
* [Using Elasticsearch and ruflin/Elastica](cookbooks/ruflin_elastica.md)
Expand Down

1 comment on commit cfccdda

@C-Duv
Copy link

@C-Duv C-Duv commented on cfccdda Nov 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification 👍

Please sign in to comment.