Merge pull request #292
This commit is contained in:
commit
a9c44b491f
|
@ -680,6 +680,14 @@ class Client extends BaseClient
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Clients as Tagged Services
|
||||||
|
|
||||||
|
Clients will be tagged as `fos_elastica.client`, which makes it possible to
|
||||||
|
retrieve all clients from the service container and interact with them via a
|
||||||
|
compiler pass. See
|
||||||
|
[Working with Tagged Services](http://symfony.com/doc/current/components/dependency_injection/tags.html)
|
||||||
|
for more information.
|
||||||
|
|
||||||
### Example of Advanced Query
|
### Example of Advanced Query
|
||||||
|
|
||||||
If you would like to perform more advanced queries, here is one example using
|
If you would like to perform more advanced queries, here is one example using
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
<call method="setLogger">
|
<call method="setLogger">
|
||||||
<argument type="service" id="fos_elastica.logger" />
|
<argument type="service" id="fos_elastica.logger" />
|
||||||
</call>
|
</call>
|
||||||
|
<tag name="fos_elastica.client" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="fos_elastica.index_manager" class="FOS\ElasticaBundle\IndexManager">
|
<service id="fos_elastica.index_manager" class="FOS\ElasticaBundle\IndexManager">
|
||||||
|
|
Loading…
Reference in a new issue