title: Error 101 when calling service
body: <p>I'm totally new on Symfony so I followed a tutorial and I'm now looking for an answer to my problem.</p>
  
  <p>I created a service. But when I call it in my controller, Chrome says : ERR_CONNECTION_RESET.
  When I remove the line that calls it, it works without any problem.</p>
  
  <p><strong>Here's my code in the controller :</strong></p>
  
  <pre><code>&lt;?php
  
  namespace CoreBundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Symfony\Component\HttpFoundation\Request;
  use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
  
  class DefaultController extends Controller {
  
      public function indexAction() {
          $listAdverts = $this-&gt;$container-&gt;get('databaseinfos.listannonces'); /*DOES NOT WORK*/ 
  return $this-&gt;render('CoreBundle:Default:index.html.twig',array('listAdverts'=&gt;$listAdv‌​erts)); 
      }
  
  }
  </code></pre>
  
  <p><strong>The code of my services.yml file :</strong></p>
  
  <pre><code>services:
      databaseinfos.listannonces:
          class: CoreBundle\DatabaseInfos
  </code></pre>
  
  <p><strong>And the code of my service :</strong></p>
  
  <pre><code>&lt;?php
  
      namespace CoreBundle\DatabaseInfos;
  
      class DatabaseInfos
      {
          public function getList(){
              // Notre liste d'annonce en dur
              $listAdverts = array(
              array(
              'title'   =&gt; 'Recherche développpeur Symfony',
              'id'      =&gt; 1,
              'author'  =&gt; 'Alexandre',
              'content' =&gt; 'Nous recherchons un développeur Symfony débutant sur Lyon. Blabla…',
              'date'    =&gt; new \Datetime()),
              array(
              'title'   =&gt; 'Mission de webmaster',
              'id'      =&gt; 2,
              'author'  =&gt; 'Hugo',
              'content' =&gt; 'Nous recherchons un webmaster capable de maintenir notre site internet. Blabla…',
              'date'    =&gt; new \Datetime()),
              array(
              'title'   =&gt; 'Offre de stage webdesigner',
              'id'      =&gt; 3,
              'author'  =&gt; 'Mathieu',
              'content' =&gt; 'Nous proposons un poste pour webdesigner. Blabla…',
              'date'    =&gt; new \Datetime())
              );
  
              return $listAdverts;
          }
      }   
  </code></pre>
  
  <p><strong>Here the template called by the controller :</strong></p>
  
  <pre><code>{% extends "CoreBundle::layout.html.twig" %}
  
  {% block title %}
    Accueil principale - {{ parent() }}
  {% endblock %}
  
  {% block body %}
  
  &lt;h1&gt;Page d'accueil du super site d'annonces !&lt;/h1&gt;
  &lt;ul&gt;
      {% for advert in listAdverts %}
        &lt;li&gt;
          &lt;a href="{{ path('oc_platform_view', {'id': advert.id}) }}"&gt;
            {{ advert.title }}
          &lt;/a&gt;
          par {{ advert.author }},
          le {{ advert.date|date('d/m/Y') }}
        &lt;/li&gt;
      {% else %}
        &lt;li&gt;Pas (encore !) d'annonces&lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;
  
  {% endblock %}
  </code></pre>
  
  <p>Thank you for your time and answers !
  Have a good day =)</p>