title: Symfony service declaration namespace
body: <p>I have strange problem with symfony2.
  In service.yml I declared pagination service:</p>
  
  <pre><code>site.paginate_service:
  class: "Smestaj\SiteBundle\Services\PaginationService"
  arguments:
    - "@service_container"
  </code></pre>
  
  <p>Service looks like this:</p>
  
  <pre><code>namespace Smestaj\SiteBundle\Services;
  use Symfony\Component\DependencyInjection\ContainerInterface;
  class PaginationService{
  
  protected $cn;
  protected $numberOfData;
  
  public function __construct(ContainerInterface $container)
  {
      $this-&gt;cn = $container;
      $this-&gt;numberOfData = $container-&gt;getParameter("limit")['adsPerPage'];
  }
  </code></pre>
  
  <p>Problem is when I call this service in service.yml into another service as dependacy injection</p>
  
  <pre><code>site.ads_service:
  class: "Smestaj\SiteBundle\Services\AdsService"
  arguments:
    - "@doctrine.orm.entity_manager"
    - "@service_container"
  calls:
    - [setPaginate, ["@site.paginate_service"]]
  </code></pre>
  
  <p>then I get this error message:</p>
  
  <blockquote>
    <p>Attempted to load class "Services aginationService" from namespace "Smestaj\SiteBundle".
    Did you forget a "use" statement for another namespace?</p>
  </blockquote>
  
  <p>So, from this message it's clearly that symfony trying to call class "ServicesaginationService". My class has Smestaj\SiteBundle\Services\PaginationService.
  Symfony, somehow merge Services and PaginationService name, and remove "P" from name.</p>
  
  <p>If I Change Class name to AaaService then everything works fine. </p>