title: Symfony 2, ServiceNotFoundException, non-existent service "templating.engine.php"
body: <p>using command: c:\Bitnami\wampstack-5.5.30-0\sym_prog\xshare><strong>php app/console debug:container -vv</strong></p>
  
  <p>I am getting an error:</p>
  
  <pre><code>  [Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException]
    The service "makerlabs.templating.helper.pager" has a dependency on a non-existent service "templating.engine.php".
  </code></pre>
  
  <p>I am following the example:
  <a href="http://sourceforge.net/p/p5chi-xshare/wiki/Lesson%202:%20Project%20and%20Data%20base%20structure/" rel="nofollow">http://sourceforge.net/p/p5chi-xshare/wiki/Lesson%202:%20Project%20and%20Data%20base%20structure/</a></p>
  
  <p>File "C:\Bitnami\wampstack-5.5.30-0\sym_prog\xshare\src\MakerLabs\PagerBundle\Resources\config\services.xml" has lines:</p>
  
  <pre><code>&lt;service id="makerlabs.templating.helper.pager" class="%makerlabs.templating.helper.pager.class%"&gt;
      &lt;tag name="templating.helper" alias="pager" /&gt;
      &lt;argument type="service" id="templating.engine.php" /&gt;
      &lt;argument type="service" id="router" /&gt;
  </code></pre>
  
  <p>File "C:\Bitnami\wampstack-5.5.30-0\sym_prog\xshare\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Resources\config\templating_php.xml"
  has lines, where this service is defined:</p>
  
  <pre><code>&lt;services&gt;
      &lt;service id="templating.engine.php" class="%templating.engine.php.class%" public="false"&gt;
          &lt;argument type="service" id="templating.name_parser" /&gt;
          &lt;argument type="service" id="service_container" /&gt;
          &lt;argument type="service" id="templating.loader" /&gt;
          &lt;argument type="service" id="templating.globals" /&gt;
          &lt;call method="setCharset"&gt;&lt;argument&gt;%kernel.charset%&lt;/argument&gt;&lt;/call&gt;
      &lt;/service&gt;
  </code></pre>
  
  <p>Thus i do not understand, why symfony2 complains that service is not found? How to correct this error?</p>
  
  <hr>
  
  <p>I have deleted Bundle makerlabs, because of the error i could not list services. Than i have listed services with command:
  c:\Bitnami\wampstack-5.5.30-0\sym_prog\xshare><strong>php app/console debug:container >
  "C:\Bitnami\wampstack-5.5.30-0\sym_prog\xshare\out.txt"</strong></p>
  
  <p>Service "templating.engine.php" does not exists among listed services. How to load it? Existing services:</p>
  
  <pre><code> templating                                                         Symfony\Bundle\TwigBundle\TwigEngine                                                       
   templating.filename_parser                                         Symfony\Bundle\FrameworkBundle\Templating\TemplateFilenameParser                           
   templating.helper.assets                                           Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper                              
   templating.helper.logout_url                                       Symfony\Bundle\SecurityBundle\Templating\Helper\LogoutUrlHelper                            
   templating.helper.router                                           Symfony\Bundle\FrameworkBundle\Templating\Helper\RouterHelper                              
   templating.helper.security                                         Symfony\Bundle\SecurityBundle\Templating\Helper\SecurityHelper                             
   templating.loader                                                  Symfony\Bundle\FrameworkBundle\Templating\Loader\FilesystemLoader                          
   templating.name_parser                                             Symfony\Bundle\FrameworkBundle\Templating\TemplateNameParser                               
   test.client   
  </code></pre>