use $this->container instead of $container

This commit is contained in:
Oskar Stark 2014-06-01 15:57:29 +02:00
parent c52c32fb56
commit 6a822504bc

View file

@ -65,7 +65,7 @@ You can now use the index wide finder service `fos_elastica.finder.website`:
```php
/** var FOS\ElasticaBundle\Finder\MappedFinder */
$finder = $container->get('fos_elastica.finder.website');
$finder = $this->container->get('fos_elastica.finder.website');
// Returns a mixed array of any objects mapped
$results = $finder->find('bob');
@ -91,7 +91,7 @@ An example for using a repository:
```php
/** var FOS\ElasticaBundle\Manager\RepositoryManager */
$repositoryManager = $container->get('fos_elastica.manager');
$repositoryManager = $this->container->get('fos_elastica.manager');
/** var FOS\ElasticaBundle\Repository */
$repository = $repositoryManager->getRepository('UserBundle:User');