UndefinedMethodException in appDevDebugProjectContainer.php line 1606 <p>I'm somewhat lost what I've done here. My app was functioning for a while, and at some point I changed something that caused this error. I've cleared my dev cache. At some point I wonder if I updated my composer and caused something because I wasn't even touching the php side of my app when I broke it.</p> <p>Here's the full error:</p> <pre><code>UndefinedMethodException in appDevDebugProjectContainer.php line 1606: Attempted to call an undefined method named "AddAthlete" of class "FOS\RestBundle\Util\FormatNegotiator". </code></pre> <p>That particular function looks like this:</p> <pre><code>protected function getFosRest_ExceptionFormatNegotiatorService() { $this-&gt;services['fos_rest.exception_format_negotiator'] = $instance = new \FOS\RestBundle\Util\FormatNegotiator(); $instance-&gt;AddAthlete($this-&gt;get('fos_rest.request_matcher.0dfc4cce134bee15f08405cb5cea4845b13ff7d8c8f779004218432a2c552bd0cd9f9d27'), array('priorities' =&gt; array(0 =&gt; 'html', 1 =&gt; 'json', 2 =&gt; 'xml'), 'fallback_format' =&gt; NULL, 'prefer_extension' =&gt; '2.0', 'methods' =&gt; NULL, 'stop' =&gt; false)); return $instance; } </code></pre> <p>I'm not particularly familiar with how this gets generated. Could someone help? If needed, here's <a href="https://github.com/RichHatch/athletes/tree/master/src/AppBundle" rel="nofollow">a link</a> to my bundle on github</p>