Merge pull request #292

This commit is contained in:
Jeremy Mikola 2013-06-10 10:37:11 -04:00
commit a9c44b491f
2 changed files with 9 additions and 0 deletions

View file

@ -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

View file

@ -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">