title: Symfony 4 : You have requested a non-existent service
body: <p>I updated my website from Symfony  3.4 to Symfony 4 and do a little change. But know I have this error :</p>
  
  <p><strong>You have requested a non-existent service "D".</strong></p>
  
  <p>Here my stack trace:</p>
  
  <pre><code>Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:
  You have requested a non-existent service "D".
  
    at vendor\symfony\dependency-injection\Container.php:263
    at Symfony\Component\DependencyInjection\Container-&gt;get('D')
       (vendor\symfony\routing\Loader\DependencyInjection\ServiceRouterLoader.php:38)
    at Symfony\Component\Routing\Loader\DependencyInjection\ServiceRouterLoader-&gt;getServiceObject('D')
       (vendor\symfony\routing\Loader\ObjectRouteLoader.php:55)
    at Symfony\Component\Routing\Loader\ObjectRouteLoader-&gt;load('D:\\IIS Websites\\Wizard\\src/config/routing.yml', 'service')
       (vendor\symfony\config\Loader\DelegatingLoader.php:40)
    at Symfony\Component\Config\Loader\DelegatingLoader-&gt;load('D:\\IIS Websites\\Wizard\\src/config/routing.yml', 'service')
       (vendor\symfony\framework-bundle\Routing\DelegatingLoader.php:70)
    at Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader-&gt;load('D:\\IIS Websites\\Wizard\\src/config/routing.yml', 'service')
       (vendor\symfony\framework-bundle\Routing\Router.php:56)
    at Symfony\Bundle\FrameworkBundle\Routing\Router-&gt;getRouteCollection()
       (vendor\symfony\routing\Router.php:367)
    at Symfony\Component\Routing\Router-&gt;getMatcherDumperInstance()
       (vendor\symfony\routing\Router.php:289)
    at Symfony\Component\Routing\Router-&gt;Symfony\Component\Routing\{closure}(object(ResourceCheckerConfigCache))
    at call_user_func(object(Closure), object(ResourceCheckerConfigCache))
       (vendor\symfony\config\ResourceCheckerConfigCacheFactory.php:43)
    at Symfony\Component\Config\ResourceCheckerConfigCacheFactory-&gt;cache('D:\\IIS Websites\\Wizard\\var\\cache\\dev/srcDevDebugProjectContainerUrlMatcher.php', object(Closure))
       (vendor\symfony\routing\Router.php:302)
    at Symfony\Component\Routing\Router-&gt;getMatcher()
       (vendor\symfony\routing\Router.php:256)
    at Symfony\Component\Routing\Router-&gt;matchRequest(object(Request))
       (vendor\symfony\http-kernel\EventListener\RouterListener.php:109)
    at Symfony\Component\HttpKernel\EventListener\RouterListener-&gt;onKernelRequest(object(GetResponseEvent), 'kernel.request', object(EventDispatcher))
       (vendor\symfony\event-dispatcher\EventDispatcher.php:212)
    at Symfony\Component\EventDispatcher\EventDispatcher-&gt;doDispatch(array(array(object(DebugHandlersListener), 'configure'), array(object(ValidateRequestListener), 'onKernelRequest'), array(object(SessionListener), 'onKernelRequest'), array(object(FragmentListener), 'onKernelRequest'), array(object(RouterListener), 'onKernelRequest'), array(object(ResolveControllerNameSubscriber), 'onKernelRequest'), array(object(LocaleListener), 'onKernelRequest'), array(object(TranslatorListener), 'onKernelRequest'), array(object(TraceableFirewallListener), 'onKernelRequest')), 'kernel.request', object(GetResponseEvent))
       (vendor\symfony\event-dispatcher\EventDispatcher.php:44)
    at Symfony\Component\EventDispatcher\EventDispatcher-&gt;dispatch('kernel.request', object(GetResponseEvent))
       (vendor\symfony\http-kernel\HttpKernel.php:125)
    at Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw(object(Request), 1)
       (vendor\symfony\http-kernel\HttpKernel.php:66)
    at Symfony\Component\HttpKernel\HttpKernel-&gt;handle(object(Request), 1, true)
       (vendor\symfony\http-kernel\Kernel.php:190)
    at Symfony\Component\HttpKernel\Kernel-&gt;handle(object(Request))
       (public\index.php:34)
  </code></pre>
  
  <p>Thanks for your help in advance.</p>