我嘗試運行一個ZF2應用程序,而runnig得到一個錯誤「An exception was raised while creating "MvcTranslator
」;任何情況下返回」更新作曲家。創建「MvcTranslator」時發生異常;沒有實例返回
我在composer.json改變最低要求參數從"minimum-stability": "stable"
到。
這裏是我的composer.json
{
"repositories": [
{
"type": "composer",
"url": "https://packages.zendframework.com/"
}
],
"homepage": "http://framework.zend.com/",
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "2.*",
"doctrine/doctrine-orm-module": "*",
"zendframework/zend-developer-tools": "dev-master",
"webino/zf2nette-debug": "dev-master",
"nitecon/zf2-db-session": "1.*",
"zf-commons/zfc-user": "*",
"nitecon/zfcuser-ldap": "dev-master",
"zf-commons/zfc-rbac":"dev-master"
},
"minimum-stability": "dev"
}
下面是堆棧錯誤。
try {
892: $circularDependencyResolver[$depKey] = true;
893: $instance = call_user_func($callable, $this, $cName, $rName);
894: unset($circularDependencyResolver[$depKey]);
895: } catch (Exception\ServiceNotFoundException $e) {
896: unset($circularDependencyResolver[$depKey]);
897: throw $e;
898: } catch (\Exception $e) {
899: unset($circularDependencyResolver[$depKey]);
900: throw new Exception\ServiceNotCreatedException(
901: sprintf('An exception was raised while creating "%s"; no instance returned', $rName),
902: $e->getCode(),
903: $e
904: );
任何一個可以請幫我走出這一點,它是當我在Google上搜尋。
此解決方案適用於我。 – piotrekkr