ZF-Commons / ZfcTwig

Zend Framework 2 Module that provides a Twig rendering strategy
BSD 3-Clause "New" or "Revised" License
96 stars 55 forks source link

doesnt work with zf 2.2.1 #69

Closed Perfect-Web closed 11 years ago

Perfect-Web commented 11 years ago

I get this

Zend\ServiceManager\Exception\ServiceNotCreatedException: An exception was raised while creating "ZfcTwigViewStrategy"; no instance returned in ... Zend\ServiceManager\Exception\ServiceNotCreatedException: An exception was raised while creating "ZfcTwigRenderer"; no instance returned in.... Zend\ServiceManager\Exception\ServiceNotCreatedException: An exception was raised while creating "ZfcTwigEnvironment"; no instance returned in .... Zend\ServiceManager\Exception\ServiceNotCreatedException: An exception was raised while creating "ZfcTwigLoaderChain"; no instance returned in .....

and that is all on one page.

Basically it says that the instance is not returned however i have checked the module.php and all should be correct.

I have to mention that the install was done thru composer

Rockstar04 commented 11 years ago

I tried to reproduce this with a fresh Skeleton app and dev-master of ZfcTwig and did not receive the error. Have you modified the module configuration at all?

Perfect-Web commented 11 years ago

nope, not at all, what php version are you on ?

Rockstar04 commented 11 years ago

@Perfect-Web If you solved the issue would you mind sharing what the issue was in case someone else runs into the problem?

Perfect-Web commented 11 years ago

the problem was not with zfctwig, was with the path stack, since i am also using zeTheme, i had to use a custom chain loader to inject the zeTheme path