appDevDebugProjectContainer.php第1606行中的UndefinedMethodException

时间:2015-11-11 14:21:39

标签: php symfony

我有点失去了我在这里所做的一切。我的应用程序运行了一段时间,并且在某些时候我改变了导致此错误的内容。我已经清除了我的开发缓存。在某些时候,我想知道我是否更新了我的作曲家并引起了一些事情,因为当我打破它时,我甚至没有触及我的应用程序的php端。

这里有完整的错误:

UndefinedMethodException in appDevDebugProjectContainer.php line 1606:
Attempted to call an undefined method named "AddAthlete" of class "FOS\RestBundle\Util\FormatNegotiator".

该特定功能如下所示:

protected function getFosRest_ExceptionFormatNegotiatorService()
{
    $this->services['fos_rest.exception_format_negotiator'] = $instance = new \FOS\RestBundle\Util\FormatNegotiator();

    $instance->AddAthlete($this->get('fos_rest.request_matcher.0dfc4cce134bee15f08405cb5cea4845b13ff7d8c8f779004218432a2c552bd0cd9f9d27'), array('priorities' => array(0 => 'html', 1 => 'json', 2 => 'xml'), 'fallback_format' => NULL, 'prefer_extension' => '2.0', 'methods' => NULL, 'stop' => false));

    return $instance;
}

我并不特别熟悉它是如何产生的。有人可以帮忙吗?如果需要,可以在{github

上找到a link到我的捆绑包

1 个答案:

答案 0 :(得分:0)

原来我一定有一些作曲家问题,因为当我把回购下载到我的另一台机器时,它工作正常(除了新的错误,是的!)

相关问题