I've got the following problem. I've got a service. And I want to use that service in every TWIG template. But it does not find my service.
I get the following error:
ServiceNotFoundException in CheckExceptionOnInvalidReferenceBehaviorPass.php line 58:
The service "twig" has a dependency on a non-existent service "appbundle\service\categoryhandler".
# Twig Configuration
engines: ['twig', 'php']
Looks like it cannot find your CategoryHandler service.
Has it been registered? Or, has auto loading been enabled? http://symfony.com/doc/current/service_container.html#creating-configuring-services-in-the-container