title: Using Solarium with Solr
body: <p>I'm trying to use Solarium (NelmioSolariumBundle) with Solr and I have this error message: </p>
  
  <pre><code>Service "solarium.client" not found: even though it exists in the app's container, the container
  inside "App\Controller\solariumController" is a smaller service locator that only knows about the
  "doctrine", "form.factory", "http_kernel", "parameter_bag", "request_stack", "router",
  "security.authorization_checker", "security.csrf.token_manager", "security.token_storage", "session"
  and "twig" services. Try using dependency injection instead.
  </code></pre>
  
  <p>Here is my controller</p>
  
  <pre><code>&lt;?php
  
  
  namespace App\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  use Symfony\Component\Routing\Annotation\Route;
  
  class solariumController extends AbstractController
  {
  
      /**
       * @Route ("/solariums", name="solariums")
       */
      public function solariumSearch(){
  
          $client = $this-&gt;get('solarium.client');
          $select = $client-&gt;createSelect();
          $select-&gt;setQuery('brandon');
          $results = $client-&gt;select($select);
  
          return $this-&gt;render('pages/solarium.html.twig',[
              '$results'
          ]);
  
      }
  }
  </code></pre>
  
  <p>Do you have any idea please?</p>
  
  <p>Thanks !</p>