OxCom / zf3-twig

ZendTwig is a module that integrates the Twig template engine with Laminas.
MIT License
19 stars 6 forks source link

Unable to resolve service "Twig_Environment" to a factory #8

Closed MakorKa closed 7 years ago

MakorKa commented 7 years ago

After installing from composer, and adding ZendTwig in modules.config.php, i get this error:

Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotFoundException: Unable to resolve service "Twig_Environment" to a factory; are you certain you provided it during configuration? in /home/makor/webprojects/recording-exchange.recex/vendor/zendframework/zend-servicemanager/src/ServiceManager.php:681 Stack trace: #0 /home/makor/webprojects/recording-exchange.recex/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(757): Zend\ServiceManager\ServiceManager->getFactory('Twig_Environmen...') #1 /home/makor/webprojects/recording-exchange.recex/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(200): Zend\ServiceManager\ServiceManager->doCreate('Twig_Environmen...') #2 /home/makor/webprojects/recording-exchange.recex/vendor/oxcom/zend-twig/src/Module.php(30): Zend\ServiceManager\ServiceManager->get('Twig_Environmen...') #3 /home/makor/webprojects/recording-exchange.recex/vendor/zendframework/zend-eventmanager/src/EventManager.php(322): ZendTwig\Module->onBootstrap(Object(Zend\Mvc\MvcEvent)) #4 in /home/makor/webprojects/recording-exchange.recex/vendor/zendframework/zend-servicemanager/src/ServiceManager.php on line 681

How to fix this?:(

Thanks!